diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-03-21 22:26:48 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-03-21 22:40:25 +0100 |
commit | 8946eecd22b4810dea452dafa4e0e2f8e55c573c (patch) | |
tree | 34afbfa1d441165ada729a30767838fa2a2c4979 /src/mainview.cpp | |
parent | Really hiding the tabbar... (diff) | |
download | rekonq-8946eecd22b4810dea452dafa4e0e2f8e55c573c.tar.xz |
Workaround the troubles with the tabbar highlight feature.
Another fantastic patch by Johannes Trosher. Thanks :)
CCBUG:267234
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r-- | src/mainview.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp index bf99010e..a0f05ccd 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -56,6 +56,8 @@ #include <QtGui/QMovie> #include <QtGui/QToolButton> +//Hack: +QString temporaryUglyHackString = ""; MainView::MainView(MainWindow *parent) : KTabWidget(parent) @@ -310,11 +312,13 @@ WebTab *MainView::newWebTab(bool focused) if (ReKonfig::openTabsNearCurrent()) { insertTab(currentIndex() + 1, tab, i18n("(Untitled)")); + temporaryUglyHackString = tabText(currentIndex() + 1); m_widgetBar->insertWidget(currentIndex() + 1, tab->urlBar()); } else { addTab(tab, i18n("(Untitled)")); + temporaryUglyHackString = tabText(count() - 1); m_widgetBar->addWidget(tab->urlBar()); } updateTabBar(); @@ -589,7 +593,8 @@ void MainView::webViewTitleChanged(const QString &title) } else { - tabBar()->setTabHighlighted(index); + if (tabTitle != temporaryUglyHackString) + tabBar()->setTabHighlighted(index); } rApp->historyManager()->updateHistoryEntry(tab->url(), tabTitle); if (ReKonfig::hoveringTabOption() == 1) |