From 49ecb4179004a209bc699ff6fc58c6ff61047a0b Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Fri, 8 Oct 2010 12:39:35 +0100
Subject: Don't show multiple Notices selected when new ones are added.

Resolves: #361

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());
 }
-- 
cgit v0.10.2-6-g49f6