summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-05-24 08:23:51 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-05-24 08:31:03 (GMT)
commitc85da0a6e0448b07c51ae07e41a6714429510b83 (patch)
tree90a9106922efe0822585542e53f36231ac0e578b /Swift/QtUI/QtMainWindow.cpp
parentd10142f4acd2d3ae31c40d07f68c77a43095f82a (diff)
downloadswift-c85da0a6e0448b07c51ae07e41a6714429510b83.zip
swift-c85da0a6e0448b07c51ae07e41a6714429510b83.tar.bz2
Fix console warning on tab focus.
Resolves: #357
Diffstat (limited to 'Swift/QtUI/QtMainWindow.cpp')
-rw-r--r--Swift/QtUI/QtMainWindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/QtUI/QtMainWindow.cpp b/Swift/QtUI/QtMainWindow.cpp
index b407f86..6f7783f 100644
--- a/Swift/QtUI/QtMainWindow.cpp
+++ b/Swift/QtUI/QtMainWindow.cpp
@@ -108,7 +108,7 @@ void QtMainWindow::setRosterModel(Roster* roster) {
}
void QtMainWindow::handleEventCountUpdated(int count) {
- QColor eventTabColor = (count == 0) ? QColor(-1, -1, -1) : QColor(255, 0, 0); // invalid resets to default
+ QColor eventTabColor = (count == 0) ? QColor() : QColor(255, 0, 0); // invalid resets to default
int eventIndex = 1;
tabs_->tabBar()->setTabTextColor(eventIndex, eventTabColor);
QString text = "Notices";