]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Simplify DolphinMainWindow::replaceLocation()
authorSebastian Doerner <sebastian@sebastian-doerner.de>
Sun, 16 Jan 2011 21:18:18 +0000 (21:18 +0000)
committerSebastian Doerner <sebastian@sebastian-doerner.de>
Sun, 16 Jan 2011 21:18:18 +0000 (21:18 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=1214916

src/dolphinmainwindow.cpp

index fd4744b6eae384046b7a97359bb9bf7330297360..3f3c1a3047eebba50368afc2989752645aef197f 100644 (file)
@@ -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()