diff options
author | Kevin Smith <git@kismith.co.uk> | 2011-02-13 17:31:47 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2011-02-13 17:31:47 (GMT) |
commit | de84b90c52a1f367b31eb56beea56c0dceae43f5 (patch) | |
tree | 57730e0b8a1e1da7ac118cda2e2f864d148dd102 | |
parent | 29c713400c9eda1a14aa69e960dc5b08bdea9689 (diff) | |
download | swift-de84b90c52a1f367b31eb56beea56c0dceae43f5.zip swift-de84b90c52a1f367b31eb56beea56c0dceae43f5.tar.bz2 |
Give all notices a default display.
Resolves: #473
-rw-r--r-- | Swift/QtUI/EventViewer/QtEventWindow.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Swift/QtUI/EventViewer/QtEventWindow.cpp b/Swift/QtUI/EventViewer/QtEventWindow.cpp index 6540d5f..aa5e27d 100644 --- a/Swift/QtUI/EventViewer/QtEventWindow.cpp +++ b/Swift/QtUI/EventViewer/QtEventWindow.cpp @@ -10,6 +10,7 @@ #include <QtDebug> #include <QBoxLayout> #include <QPushButton> +#include <QMessageBox> #include "Swift/Controllers/XMPPEvents/MessageEvent.h" #include "Swift/Controllers/XMPPEvents/ErrorEvent.h" @@ -85,10 +86,13 @@ void QtEventWindow::handleItemActivated(const QModelIndex& item) { } else if (subscriptionEvent) { QtSubscriptionRequestWindow* window = QtSubscriptionRequestWindow::getWindow(subscriptionEvent, this); window->show(); - } else if (errorEvent) { - errorEvent->conclude(); } else { - qWarning() << "Trying to activate an unexpected event"; + if (errorEvent) { + errorEvent->conclude(); + } + QMessageBox msgBox; + msgBox.setText(model_->data(item, Qt::DisplayRole).toString()); + msgBox.exec(); } } |