summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-08-29 21:28:20 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-08-29 21:28:20 (GMT)
commit509c20d24b59e09e7aeb5045abebad8a370bb3ba (patch)
treee063f3fa2060f09474aeb9d8fe4c68dbeb54ac35 /Swift/Controllers/MainController.cpp
parent0d6f71fadac786fb94302e8f5762e37f7e598e53 (diff)
downloadswift-509c20d24b59e09e7aeb5045abebad8a370bb3ba.zip
swift-509c20d24b59e09e7aeb5045abebad8a370bb3ba.tar.bz2
Experimental fix for stuff in background, chats coming to front when opened etc.
Diffstat (limited to 'Swift/Controllers/MainController.cpp')
-rw-r--r--Swift/Controllers/MainController.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Swift/Controllers/MainController.cpp b/Swift/Controllers/MainController.cpp
index 78f5f65..873023a 100644
--- a/Swift/Controllers/MainController.cpp
+++ b/Swift/Controllers/MainController.cpp
@@ -244,7 +244,9 @@ void MainController::logout() {
void MainController::handleChatRequest(const String &contact) {
- getChatController(JID(contact))->showChatWindow();
+ ChatController* controller = getChatController(JID(contact));
+ controller->showChatWindow();
+ controller->activateChatWindow();
}
ChatController* MainController::getChatController(const JID &contact) {