summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-02-14 22:41:44 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-02-14 22:41:44 +0100
commita619df7d9e26b6c30a57a4652be85e6e2aa0ff5f (patch)
treeb8f4ca15a72ce6f17ba180296b7acd3912563882 /src/mainview.cpp
parentReplace webshorcuts icons and text. (diff)
downloadrekonq-a619df7d9e26b6c30a57a4652be85e6e2aa0ff5f.tar.xz
Highlights inactive tabs if title changes.
Fantastic patch by Johannes Troscher. Reviewed by benjaminp (mainly) and adjam
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 e321f486..3e173d93 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -267,6 +267,8 @@ void MainView::currentChanged(int index)
m_widgetBar->currentWidget()->setFocus();
else
tab->view()->setFocus();
+
+ tabBar()->resetTabHighlighted(index);
}
@@ -575,6 +577,10 @@ void MainView::webViewTitleChanged(const QString &title)
{
emit currentTitle(viewTitle);
}
+ else
+ {
+ tabBar()->setTabHighlighted(index);
+ }
Application::historyManager()->updateHistoryEntry(tab->url(), tabTitle);
if (ReKonfig::hoveringTabOption() == 1)
tabBar()->setTabToolTip(index, tabTitle.remove('&'));