diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-04-12 15:05:57 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-04-12 15:05:57 (GMT) |
commit | fa47c498947e818438ec9c6318924d11c2ae6c84 (patch) | |
tree | c33ca1f4376686edafbca3f120b363bfedc027ac /Swift/Controllers/MainController.cpp | |
parent | 6578b5872440f63ed8a4903bae83e46e936d469e (diff) | |
download | swift-fa47c498947e818438ec9c6318924d11c2ae6c84.zip swift-fa47c498947e818438ec9c6318924d11c2ae6c84.tar.bz2 |
Allow ErrorEvents into the EventController (display them to the user).
Diffstat (limited to 'Swift/Controllers/MainController.cpp')
-rw-r--r-- | Swift/Controllers/MainController.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Swift/Controllers/MainController.cpp b/Swift/Controllers/MainController.cpp index 33928f8..e8c6c94 100644 --- a/Swift/Controllers/MainController.cpp +++ b/Swift/Controllers/MainController.cpp @@ -353,9 +353,11 @@ void MainController::handleError(const ClientError& error) { signOut(); loginWindow_->setMessage(message); } else { + std::cout << "Yay, error" << std::endl; if (!lastDisconnectError_) { - message = "Disconnected from " + jid_.getDomain() + ": "; + message = "Disconnected from " + jid_.getDomain() + ": " + message; lastDisconnectError_ = boost::shared_ptr<ErrorEvent>(new ErrorEvent(JID(jid_.getDomain()), message)); + std::cout << message << std::endl; eventController_->handleIncomingEvent(lastDisconnectError_); } } |