summaryrefslogtreecommitdiff
path: root/src/tabwindow/tabwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-07-25 10:08:59 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:04 +0100
commit6a291bc696903c508ecc55fbd2b4f227d4ef6eef (patch)
tree2eac7be129ac2bc52e7d58ed245188c80fb953af /src/tabwindow/tabwindow.cpp
parentCoding style (diff)
downloadrekonq-6a291bc696903c508ecc55fbd2b4f227d4ef6eef.tar.xz
Re-view and re-add tab highlight feature
Diffstat (limited to 'src/tabwindow/tabwindow.cpp')
-rw-r--r--src/tabwindow/tabwindow.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/tabwindow/tabwindow.cpp b/src/tabwindow/tabwindow.cpp
index 772fe3e2..a211f63e 100644
--- a/src/tabwindow/tabwindow.cpp
+++ b/src/tabwindow/tabwindow.cpp
@@ -189,9 +189,9 @@ void TabWindow::pageCreated(WebPage *page)
void TabWindow::currentChanged(int newIndex)
{
- Q_UNUSED(newIndex);
-
_openedTabsCounter = 0;
+
+ tabBar()->setTabHighlighted(newIndex, false);
}
@@ -246,6 +246,12 @@ void TabWindow::tabTitleChanged(const QString &title)
setTabText(index, tabTitle);
}
+ if (currentIndex() != index)
+ {
+ if (tabTitle != i18n("(Untitled)"))
+ tabBar()->setTabHighlighted(index, true);
+ }
+
// TODO: What about window title?
}