summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/Controllers')
-rw-r--r--Swift/Controllers/MainController.cpp1
-rw-r--r--Swift/Controllers/SystemTray.h1
-rw-r--r--Swift/Controllers/SystemTrayController.cpp4
-rw-r--r--Swift/Controllers/SystemTrayController.h1
4 files changed, 7 insertions, 0 deletions
diff --git a/Swift/Controllers/MainController.cpp b/Swift/Controllers/MainController.cpp
index 614e2d2..f6fe40c 100644
--- a/Swift/Controllers/MainController.cpp
+++ b/Swift/Controllers/MainController.cpp
@@ -427,6 +427,7 @@ void MainController::performLoginFromCachedCredentials() {
/* In case we're in the middle of another login, make sure they don't overlap */
client_->disconnect();
}
+ systemTrayController_->setConnecting();
if (rosterController_) {
rosterController_->getWindow()->setConnecting();
}
diff --git a/Swift/Controllers/SystemTray.h b/Swift/Controllers/SystemTray.h
index 2821785..736b1fa 100644
--- a/Swift/Controllers/SystemTray.h
+++ b/Swift/Controllers/SystemTray.h
@@ -14,5 +14,6 @@ namespace Swift {
virtual ~SystemTray(){};
virtual void setUnreadMessages(bool some) = 0;
virtual void setStatusType(StatusShow::Type type) = 0;
+ virtual void setConnecting() = 0;
};
}
diff --git a/Swift/Controllers/SystemTrayController.cpp b/Swift/Controllers/SystemTrayController.cpp
index d3824c9..598771c 100644
--- a/Swift/Controllers/SystemTrayController.cpp
+++ b/Swift/Controllers/SystemTrayController.cpp
@@ -35,4 +35,8 @@ void SystemTrayController::setMyStatusType(StatusShow::Type type) {
systemTray_->setStatusType(type);
}
+void SystemTrayController::setConnecting() {
+ systemTray_->setConnecting();
+}
+
}
diff --git a/Swift/Controllers/SystemTrayController.h b/Swift/Controllers/SystemTrayController.h
index 8fd514f..3624ea2 100644
--- a/Swift/Controllers/SystemTrayController.h
+++ b/Swift/Controllers/SystemTrayController.h
@@ -16,6 +16,7 @@ namespace Swift {
public:
SystemTrayController(EventController* eventController, SystemTray* systemTray);
void setMyStatusType(StatusShow::Type type);
+ void setConnecting();
private:
void handleEventQueueLengthChange(int length);