summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Tröscher <fritz_van_tom@hotmail.com>2011-11-29 23:34:05 +0100
committerJohannes Tröscher <fritz_van_tom@hotmail.com>2011-11-29 23:34:05 +0100
commit69a323abc71086a0eeab6af3129ffe1b4ec2a4ef (patch)
tree4508b494bbf3ee87a65cd9cd0b12859b2fa37906
parentfix input of "/" in url bar when using NEO keyboard layout (diff)
downloadrekonq-69a323abc71086a0eeab6af3129ffe1b4ec2a4ef.tar.xz
remove ugly hack string in mainview
REVIEWED-BY: trustMe
-rw-r--r--src/mainview.cpp6
1 files changed, 1 insertions, 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 <QtGui/QMovie>
#include <QtGui/QToolButton>
-//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);