summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-09-15 10:06:15 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-09-15 10:06:15 (GMT)
commit13c1ef651158d8bdbd459ebea461c23c89699abd (patch)
treeb453d0f28ebd14560829cbe8283ed12cb488af34 /Swift/Controllers/RosterController.cpp
parentc557a9771c99012624e104e5bc71aeb93f38a8bf (diff)
downloadswift-13c1ef651158d8bdbd459ebea461c23c89699abd.zip
swift-13c1ef651158d8bdbd459ebea461c23c89699abd.tar.bz2
Completely untested. Rewiring the MainController for Client to be reconnectable (won't compile).
Diffstat (limited to 'Swift/Controllers/RosterController.cpp')
-rw-r--r--Swift/Controllers/RosterController.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Swift/Controllers/RosterController.cpp b/Swift/Controllers/RosterController.cpp
index e27335b..6da5faf 100644
--- a/Swift/Controllers/RosterController.cpp
+++ b/Swift/Controllers/RosterController.cpp
@@ -10,6 +10,7 @@
#include "Swiften/EventLoop/MainEventLoop.h"
#include "Swiften/Roster/Roster.h"
#include "Swiften/Roster/SetPresence.h"
+#include "Swiften/Roster/AppearOffline.h"
#include "Swiften/Roster/SetAvatar.h"
#include "Swiften/Roster/OfflineRosterFilter.h"
#include "Swiften/Roster/OpenChatRosterAction.h"
@@ -63,8 +64,9 @@ void RosterController::setAvatarManager(AvatarManager* avatarManager) {
}
void RosterController::setEnabled(bool enabled) {
- //FIXME: implement;
- h
+ if (!enabled) {
+ roster_->applyOnItems(AppearOffline());
+ }
}
void RosterController::handleShowOfflineToggled(bool state) {