┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastian Doerner <[email protected]>2011-01-16 21:18:18 +0000
committerSebastian Doerner <[email protected]>2011-01-16 21:18:18 +0000
commitf5f6c89c3f7b95eae6e15a28d66420fa5136469c (patch)
tree1a01e2421d925b33dc149cf10f59435e2d367840 /src
parent38719e5dfdf1887d7e08f6b36ebf9c87c262a016 (diff)
Simplify DolphinMainWindow::replaceLocation()
svn path=/trunk/KDE/kdebase/apps/; revision=1214916
Diffstat (limited to 'src')
-rw-r--r--src/dolphinmainwindow.cpp4
1 files changed, 1 insertions, 3 deletions
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()