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
parentd10142f4acd2d3ae31c40d07f68c77a43095f82a (diff)
downloadswift-c85da0a6e0448b07c51ae07e41a6714429510b83.zip
swift-c85da0a6e0448b07c51ae07e41a6714429510b83.tar.bz2
Fix console warning on tab focus.
Resolves: #357
-rw-r--r--Swift/QtUI/QtChatTabs.cpp2
-rw-r--r--Swift/QtUI/QtMainWindow.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Swift/QtUI/QtChatTabs.cpp b/Swift/QtUI/QtChatTabs.cpp
index 3ac423f..d327e7c 100644
--- a/Swift/QtUI/QtChatTabs.cpp
+++ b/Swift/QtUI/QtChatTabs.cpp
@@ -120,7 +120,7 @@ void QtChatTabs::handleTabTitleUpdated(QWidget* widget) {
switch (tabbable->getWidgetAlertState()) {
case QtTabbable::WaitingActivity : flash = true; tabTextColor = QColor(255, 0, 0); break;
case QtTabbable::ImpendingActivity : tabTextColor = QColor(0, 255, 0); break;
- default : tabTextColor = QColor(-1,-1,-1);//invalid resets to default
+ default : tabTextColor = QColor();
}
tabs_->tabBar()->setTabTextColor(index, tabTextColor);
if (widget == tabs_->currentWidget()) {
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";