diff options
author | Kevin Smith <git@kismith.co.uk> | 2011-03-10 09:03:24 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2011-03-10 09:03:24 (GMT) |
commit | 3ff52013d810f94b6095e93f550f58133e2df239 (patch) | |
tree | 93038c34fccfef16a448e3fbc8d2b790603d807b /Swift/Controllers/EventWindowController.cpp | |
parent | 912dbcf226e361f23b82a77372038865ffebbd02 (diff) | |
download | swift-contrib-3ff52013d810f94b6095e93f550f58133e2df239.zip swift-contrib-3ff52013d810f94b6095e93f550f58133e2df239.tar.bz2 |
(Really this time) fix unread messages.
I hope, anyway.
Resolves: #775
Diffstat (limited to 'Swift/Controllers/EventWindowController.cpp')
-rw-r--r-- | Swift/Controllers/EventWindowController.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Swift/Controllers/EventWindowController.cpp b/Swift/Controllers/EventWindowController.cpp index a6ff061..fbe9a8a 100644 --- a/Swift/Controllers/EventWindowController.cpp +++ b/Swift/Controllers/EventWindowController.cpp @@ -24,8 +24,12 @@ EventWindowController::~EventWindowController() { } void EventWindowController::handleEventQueueEventAdded(boost::shared_ptr<StanzaEvent> event) { - event->onConclusion.connect(boost::bind(&EventWindowController::handleEventConcluded, this, event)); - window_->addEvent(event, event->getConcluded()); + if (event->getConcluded()) { + handleEventConcluded(event); + } else { + event->onConclusion.connect(boost::bind(&EventWindowController::handleEventConcluded, this, event)); + window_->addEvent(event, true); + } } void EventWindowController::handleEventConcluded(boost::shared_ptr<StanzaEvent> event) { |