┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-02-16 22:05:34 +0000
committerPeter Penz <[email protected]>2008-02-16 22:05:34 +0000
commit98497a639a8ddba1bbe52ea96f54c5d40e53eef9 (patch)
tree427246a4080a66c39f28894d57c7489463a9da80 /src
parente4a77559f5673670f53428888614f0d94093ec77 (diff)
let F6 also select the whole text of the URL navigator to stay consistent with Konqueror and Firefox
BUG: 157589 svn path=/trunk/KDE/kdebase/apps/; revision=775977
Diffstat (limited to 'src')
-rw-r--r--src/dolphinmainwindow.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index dd8b02efb..27ed1b89b 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -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()