homeBoxLayout->addWidget(homeUrlBox);
homeBoxLayout->addWidget(buttonBox);
- // create 'Split view', 'Editable location' and 'Filter bar' checkboxes
+ // create 'Split view', 'Show full path', 'Editable location' and 'Filter bar' checkboxes
m_splitView = new QCheckBox(i18nc("@option:check Startup Settings", "Split view mode"), vBox);
m_editableUrl = new QCheckBox(i18nc("@option:check Startup Settings", "Editable location bar"), vBox);
m_showFullPath = new QCheckBox(i18nc("@option:check Startup Settings", "Show full path inside location bar"), vBox);
if (url.isValid() && fileItem.isDir()) {
settings->setHomeUrl(url.prettyUrl());
} else {
- KMessageBox::error(this, i18nc("@info", "The location for the home folder is invalid and will not be applied."));
+ KMessageBox::error(this, i18nc("@info", "The location for the home folder is invalid or does not exist, it will not be applied."));
}
settings->setSplitView(m_splitView->isChecked());
void StartupSettingsPage::restoreDefaults()
{
GeneralSettings* settings = DolphinSettings::instance().generalSettings();
- settings->setDefaults();
+ settings->useDefaults(true);
loadSettings();
+ settings->useDefaults(false);
}
void StartupSettingsPage::selectHomeUrl()
void StartupSettingsPage::useDefaultLocation()
{
- m_homeUrl->setText(QDir::homePath());
+ KUrl url(QDir::homePath());
+ m_homeUrl->setText(url.prettyUrl());
}
void StartupSettingsPage::loadSettings()
{
GeneralSettings* settings = DolphinSettings::instance().generalSettings();
- m_homeUrl->setText(settings->homeUrl());
+ KUrl url(settings->homeUrl());
+ m_homeUrl->setText(url.prettyUrl());
m_splitView->setChecked(settings->splitView());
m_editableUrl->setChecked(settings->editableUrl());
m_showFullPath->setChecked(settings->showFullPath());