mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 16:31:21 +00:00
Simplify DolphinMainWindow::replaceLocation()
svn path=/trunk/KDE/kdebase/apps/; revision=1214916
This commit is contained in:
parent
38719e5dfd
commit
f5f6c89c3f
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue