summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2016-07-29 14:46:41 (GMT)
committerKevin Smith <kevin.smith@isode.com>2016-08-02 11:43:07 (GMT)
commitdbd57ffd259b9dba6990de0b02b450fa2a59a563 (patch)
treee34502cd609ca16715957c043cc2c812964635e5 /Swift/QtUI/EventViewer/QtEventWindow.cpp
parent5eeb7327e4d5b713feb26f8d59f417f653705b48 (diff)
downloadswift-dbd57ffd259b9dba6990de0b02b450fa2a59a563.zip
swift-dbd57ffd259b9dba6990de0b02b450fa2a59a563.tar.bz2
Fix notice sometimes showing empty popup dialog on activation
Test-Information: Tried editing a contact on a server prohibiting contact editing. Previously the first double-click on the notice showed an empty popup. Now the correct popup text is shown. Change-Id: I996cf5b654e866ec6dd3f5198b694ae564018695
Diffstat (limited to 'Swift/QtUI/EventViewer/QtEventWindow.cpp')
-rw-r--r--Swift/QtUI/EventViewer/QtEventWindow.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Swift/QtUI/EventViewer/QtEventWindow.cpp b/Swift/QtUI/EventViewer/QtEventWindow.cpp
index e77699b..c8d1f0c 100644
--- a/Swift/QtUI/EventViewer/QtEventWindow.cpp
+++ b/Swift/QtUI/EventViewer/QtEventWindow.cpp
@@ -9,12 +9,13 @@
#include <QBoxLayout>
#include <QMessageBox>
#include <QPushButton>
-#include <QtDebug>
+#include <QTreeView>
#include <Swiften/Base/Platform.h>
#include <Swift/Controllers/UIEvents/JoinMUCUIEvent.h>
#include <Swift/Controllers/UIEvents/RequestChatUIEvent.h>
+#include <Swift/Controllers/UIEvents/UIEventStream.h>
#include <Swift/Controllers/XMPPEvents/ErrorEvent.h>
#include <Swift/Controllers/XMPPEvents/IncomingFileTransferEvent.h>
#include <Swift/Controllers/XMPPEvents/MUCInviteEvent.h>
@@ -99,7 +100,7 @@ void QtEventWindow::handleItemActivated(const QModelIndex& item) {
errorEvent->conclude();
}
QMessageBox msgBox;
- msgBox.setText(model_->data(item, Qt::DisplayRole).toString());
+ msgBox.setText(event->data(Qt::DisplayRole).toString());
msgBox.exec();
}