From 98497a639a8ddba1bbe52ea96f54c5d40e53eef9 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 16 Feb 2008 22:05:34 +0000 Subject: [PATCH] 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 --- src/dolphinmainwindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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() -- 2.47.3