KUrlNavigator* navigator = m_activeViewContainer->urlNavigator();
navigator->setUrlEditable(true);
navigator->setFocus();
+
+ // select the whole text of the combo box editor
+ QLineEdit* lineEdit = navigator->editor()->lineEdit();
+ const QString text = lineEdit->text();
+ lineEdit->setSelection(0, text.length());
}
void DolphinMainWindow::adjustViewProperties()
const bool firstRun = generalSettings->firstRun();
if (firstRun) {
generalSettings->setViewPropsTimestamp(QDateTime::currentDateTime());
- Q_ASSERT(generalSettings->homeUrl().isEmpty());
- const KUrl homeUrl(QDir::homePath());
- generalSettings->setHomeUrl(homeUrl.prettyUrl());
}
setAcceptDrops(true);