summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-10-08 11:39:35 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-10-08 11:39:35 (GMT)
commit49ecb4179004a209bc699ff6fc58c6ff61047a0b (patch)
treec9e600554f9dbc48522e5ade6a42d274c935e168
parentd7fb4678b37a80f615755609648aad8dcef6ac00 (diff)
downloadswift-49ecb4179004a209bc699ff6fc58c6ff61047a0b.zip
swift-49ecb4179004a209bc699ff6fc58c6ff61047a0b.tar.bz2
Don't show multiple Notices selected when new ones are added.
Resolves: #361
-rw-r--r--Swift/QtUI/EventViewer/QtEventWindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Swift/QtUI/EventViewer/QtEventWindow.cpp b/Swift/QtUI/EventViewer/QtEventWindow.cpp
index 826e360..b56ee78 100644
--- a/Swift/QtUI/EventViewer/QtEventWindow.cpp
+++ b/Swift/QtUI/EventViewer/QtEventWindow.cpp
@@ -94,11 +94,13 @@ void QtEventWindow::handleItemActivated(const QModelIndex& item) {
}
void QtEventWindow::addEvent(boost::shared_ptr<StanzaEvent> event, bool active) {
+ view_->clearSelection();
model_->addEvent(event, active);
emit onNewEventCountUpdated(model_->getNewEventCount());
}
void QtEventWindow::removeEvent(boost::shared_ptr<StanzaEvent> event) {
+ view_->clearSelection();
model_->removeEvent(event);
emit onNewEventCountUpdated(model_->getNewEventCount());
}