diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-03-21 22:40:42 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-03-21 22:40:42 +0100 |
commit | 33c8c8a6bfe805e1c1a94586e81c5cd27cabd53e (patch) | |
tree | 1a2611949457d8c38741c6b60350c408eb59bbd6 /src/mainview.cpp | |
parent | update INSTALL file (diff) | |
parent | Workaround the troubles with the tabbar highlight feature. (diff) | |
download | rekonq-33c8c8a6bfe805e1c1a94586e81c5cd27cabd53e.tar.xz |
Merge branch 'fixes'
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) |