]> cloud.milkyroute.net Git - dolphin.git/commitdiff
let F6 also select the whole text of the URL navigator to stay consistent with Konque...
authorPeter Penz <peter.penz19@gmail.com>
Sat, 16 Feb 2008 22:05:34 +0000 (22:05 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Sat, 16 Feb 2008 22:05:34 +0000 (22:05 +0000)
BUG: 157589

svn path=/trunk/KDE/kdebase/apps/; revision=775977

src/dolphinmainwindow.cpp

index dd8b02efbe183bc25d4a0960076f9bc934b56ca1..27ed1b89b34d053e02654ef35bfacc38ef626f34 100644 (file)
@@ -499,6 +499,11 @@ void DolphinMainWindow::editLocation()
     KUrlNavigator* navigator = m_activeViewContainer->urlNavigator();
     navigator->setUrlEditable(true);
     navigator->setFocus();
+
+    // select the whole text of the combo box editor
+    QLineEdit* lineEdit = navigator->editor()->lineEdit();
+    const QString text = lineEdit->text();
+    lineEdit->setSelection(0, text.length());
 }
 
 void DolphinMainWindow::adjustViewProperties()