diff options
Diffstat (limited to 'src/tabwindow/tabwindow.cpp')
-rw-r--r-- | src/tabwindow/tabwindow.cpp | 10 |
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? } |