┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2010-03-24 08:06:34 +0000
committerPeter Penz <[email protected]>2010-03-24 08:06:34 +0000
commitb28bec6710c1d1a90f04fb05e27ab4c1b2557231 (patch)
treeb8f974a3c4bb75615c45a6975d8da80a04e2456d
parente164a139cff331663660513d42edd44976fa240c (diff)
Always apply the editable state of the current URL navigator to the URL navigator of the new tab (not only if the current URL navigator is editable)
svn path=/trunk/KDE/kdebase/apps/; revision=1106928
-rw-r--r--src/dolphinmainwindow.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index 9272713cc..eaa8ebb8a 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -392,9 +392,12 @@ void DolphinMainWindow::openNewTab()
openNewTab(m_activeViewContainer->url());
m_tabBar->setCurrentIndex(m_viewTab.count() - 1);
+ // The URL navigator of the new tab should have the same editable state
+ // as the current tab
+ KUrlNavigator* navigator = m_activeViewContainer->urlNavigator();
+ navigator->setUrlEditable(isUrlEditable);
+
if (isUrlEditable) {
- KUrlNavigator* navigator = m_activeViewContainer->urlNavigator();
- navigator->setUrlEditable(true);
// If a new tab is opened and the URL is editable, assure that
// the user can edit the URL without manually setting the focus
navigator->setFocus();