summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-02-10 19:05:45 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-02-10 19:05:45 +0100
commitfc669e0bf82018baa70a8b59529e1a571d5ad820 (patch)
treed347c2ffa43d4d2a261b4f4e9a21f623397f280d /src/mainview.cpp
parentFix issue 258905: mark window in taskbar when opening link from external apps... (diff)
downloadrekonq-fc669e0bf82018baa70a8b59529e1a571d5ad820.tar.xz
highlights inactive tabs if title changes
Courtesy patch by Johannes Troscher. Thanks :) Reviewed by: adjam Reviewed by: elproxy
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 66c86bc5..af7a9511 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -266,6 +266,8 @@ void MainView::currentChanged(int index)
m_widgetBar->currentWidget()->setFocus();
else
tab->view()->setFocus();
+
+ tabBar()->setTabHighlighted(index, false);
}
@@ -574,6 +576,10 @@ void MainView::webViewTitleChanged(const QString &title)
{
emit currentTitle(viewTitle);
}
+ else
+ {
+ tabBar()->setTabHighlighted(index, true);
+ }
Application::historyManager()->updateHistoryEntry(tab->url(), tabTitle);
if (ReKonfig::hoveringTabOption() == 1)
tabBar()->setTabToolTip(index, tabTitle.remove('&'));