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
This commit is contained in:
Peter Penz 2008-02-16 22:05:34 +00:00
parent e4a77559f5
commit 98497a639a

View 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()