diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-10-08 11:39:35 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-10-08 11:39:35 (GMT) |
commit | 49ecb4179004a209bc699ff6fc58c6ff61047a0b (patch) | |
tree | c9e600554f9dbc48522e5ade6a42d274c935e168 /Swift/QtUI | |
parent | d7fb4678b37a80f615755609648aad8dcef6ac00 (diff) | |
download | swift-49ecb4179004a209bc699ff6fc58c6ff61047a0b.zip swift-49ecb4179004a209bc699ff6fc58c6ff61047a0b.tar.bz2 |
Don't show multiple Notices selected when new ones are added.
Resolves: #361
Diffstat (limited to 'Swift/QtUI')
-rw-r--r-- | Swift/QtUI/EventViewer/QtEventWindow.cpp | 2 |
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()); } |