From de84b90c52a1f367b31eb56beea56c0dceae43f5 Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Sun, 13 Feb 2011 17:31:47 +0000 Subject: Give all notices a default display. Resolves: #473 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 #include #include +#include #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(); } } -- cgit v0.10.2-6-g49f6