summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-07-11 16:49:09 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-07-11 16:49:09 +0300
commite7f30b57e8bb00c201fb413e2e3754246546137e (patch)
treec8244ecfe8fdb1dcbef0d14fde8c105524d040f6 /src
parentSend image dimensions in m.image event (diff)
downloadnheko-e7f30b57e8bb00c201fb413e2e3754246546137e.tar.xz
Use QSharedPointer::data to be compatible with Qt < 5.11
Diffstat (limited to 'src')
-rw-r--r--src/ChatPage.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ChatPage.cc b/src/ChatPage.cc

index 23469da5..29747fbe 100644 --- a/src/ChatPage.cc +++ b/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,