]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Always apply the editable state of the current URL navigator to the URL navigator...
authorPeter Penz <peter.penz19@gmail.com>
Wed, 24 Mar 2010 08:06:34 +0000 (08:06 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Wed, 24 Mar 2010 08:06:34 +0000 (08:06 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=1106928

src/dolphinmainwindow.cpp

index 9272713ccd552aab048e6c5fd49b929fccfe207c..eaa8ebb8aa9793fb6eb818165f4b37d7db7f6b1c 100644 (file)
@@ -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();