diff options
author | Kevin Smith <git@kismith.co.uk> | 2011-03-09 07:39:21 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2011-03-09 07:40:58 (GMT) |
commit | 912dbcf226e361f23b82a77372038865ffebbd02 (patch) | |
tree | 17582ca97ca1d7bed5de3f7ff8aeb7b931537e1f /Swift/Controllers/SoundEventController.cpp | |
parent | ba14801a660031f3a2ad06a2054fd8a6bc4b10b5 (diff) | |
download | swift-contrib-912dbcf226e361f23b82a77372038865ffebbd02.zip swift-contrib-912dbcf226e361f23b82a77372038865ffebbd02.tar.bz2 |
Fix marking notices as read.
Resolves: #775
Diffstat (limited to 'Swift/Controllers/SoundEventController.cpp')
-rw-r--r-- | Swift/Controllers/SoundEventController.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Swift/Controllers/SoundEventController.cpp b/Swift/Controllers/SoundEventController.cpp index 0351445..26847ed 100644 --- a/Swift/Controllers/SoundEventController.cpp +++ b/Swift/Controllers/SoundEventController.cpp @@ -28,8 +28,10 @@ SoundEventController::SoundEventController(EventController* eventController, Sou setPlaySounds(playSounds); } -void SoundEventController::handleEventQueueEventAdded(boost::shared_ptr<StanzaEvent>) { - if (playSounds_) soundPlayer_->playSound(SoundPlayer::MessageReceived); +void SoundEventController::handleEventQueueEventAdded(boost::shared_ptr<StanzaEvent> event) { + if (playSounds_ && !event->getConcluded()) { + soundPlayer_->playSound(SoundPlayer::MessageReceived); + } } void SoundEventController::setPlaySounds(bool playSounds) { |