summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-10-04 19:48:09 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-10-04 19:48:09 (GMT)
commitbb31d6f3a20e8989e182fa78b1bf2edaa2156dea (patch)
tree35be6fa1ea67e12985e2b852b9a04977b6f0a00a /Swift
parent537afef23b0f5da31c0cd38597a13773d79f77d4 (diff)
downloadswift-bb31d6f3a20e8989e182fa78b1bf2edaa2156dea.zip
swift-bb31d6f3a20e8989e182fa78b1bf2edaa2156dea.tar.bz2
Disable the notifier when going to DND.
Resolves: #572
Diffstat (limited to 'Swift')
-rw-r--r--Swift/Controllers/MainController.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Swift/Controllers/MainController.cpp b/Swift/Controllers/MainController.cpp
index d4093f0..3cf2907 100644
--- a/Swift/Controllers/MainController.cpp
+++ b/Swift/Controllers/MainController.cpp
@@ -335,6 +335,7 @@ void MainController::sendPresence(boost::shared_ptr<Presence> presence) {
rosterController_->getWindow()->setMyStatusType(presence->getShow());
rosterController_->getWindow()->setMyStatusText(presence->getStatus());
systemTrayController_->setMyStatusType(presence->getShow());
+ notifier_->setEnabled(presence->getShow() != StatusShow::DND);
// Add information and send
if (!vCardPhotoHash_.isEmpty()) {