Use QSharedPointer::data to be compatible with Qt < 5.11

remotes/origin/HEAD
Konstantinos Sideris 6 years ago
parent 6f07ab433e
commit e7f30b57e8
  1. 2
      src/ChatPage.cc

@ -300,7 +300,7 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QWidget *parent)
auto bin = dev->peek(dev->size());
auto payload = std::string(bin.data(), bin.size());
auto dimensions = QImageReader(dev.get()).size();
auto dimensions = QImageReader(dev.data()).size();
http::v2::client()->upload(
payload,

Loading…
Cancel
Save