Simplify DolphinMainWindow::replaceLocation()

svn path=/trunk/KDE/kdebase/apps/; revision=1214916
This commit is contained in:
Sebastian Doerner 2011-01-16 21:18:18 +00:00
parent 38719e5dfd
commit f5f6c89c3f

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