diff options
| author | Peter Penz <[email protected]> | 2008-02-16 22:05:34 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-02-16 22:05:34 +0000 |
| commit | 98497a639a8ddba1bbe52ea96f54c5d40e53eef9 (patch) | |
| tree | 427246a4080a66c39f28894d57c7489463a9da80 | |
| parent | e4a77559f5673670f53428888614f0d94093ec77 (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
| -rw-r--r-- | src/dolphinmainwindow.cpp | 5 |
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() |
