From f5f6c89c3f7b95eae6e15a28d66420fa5136469c Mon Sep 17 00:00:00 2001 From: Sebastian Doerner Date: Sun, 16 Jan 2011 21:18:18 +0000 Subject: Simplify DolphinMainWindow::replaceLocation() svn path=/trunk/KDE/kdebase/apps/; revision=1214916 --- src/dolphinmainwindow.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/dolphinmainwindow.cpp') diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index fd4744b6e..3f3c1a304 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -844,12 +844,10 @@ void DolphinMainWindow::replaceLocation() { KUrlNavigator* navigator = m_activeViewContainer->urlNavigator(); navigator->setUrlEditable(true); - navigator->setFocus(); // select the whole text of the combo box editor QLineEdit* lineEdit = navigator->editor()->lineEdit(); // krazy:exclude=qclasses - const QString text = lineEdit->text(); - lineEdit->setSelection(0, text.length()); + lineEdit->selectAll(); } void DolphinMainWindow::togglePanelLockState() -- cgit v1.3