From 69a323abc71086a0eeab6af3129ffe1b4ec2a4ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Tr=C3=B6scher?= Date: Tue, 29 Nov 2011 23:34:05 +0100 Subject: remove ugly hack string in mainview REVIEWED-BY: trustMe --- src/mainview.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/mainview.cpp b/src/mainview.cpp index fb6a1d78..d7612143 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -56,8 +56,6 @@ #include #include -//Hack: -QString temporaryUglyHackString = ""; MainView::MainView(QWidget *parent) : KTabWidget(parent) @@ -304,13 +302,11 @@ 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(); @@ -584,7 +580,7 @@ void MainView::webViewTitleChanged(const QString &title) } else { - if (tabTitle != temporaryUglyHackString) + if (tabTitle != i18n("(Untitled)")) tabBar()->setTabHighlighted(index); } rApp->historyManager()->updateHistoryEntry(tab->url(), tabTitle); -- cgit v1.2.1