From: Shaun Reich Date: Wed, 4 Feb 2009 03:44:13 +0000 (+0000) Subject: The Home folder location, when set via loadSettings(), and when set via the 'Use... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/5c53ea1f60c98653785dfc5803bc5d5fe808116f The Home folder location, when set via loadSettings(), and when set via the 'Use Default Location' button, now will use KUrl::prettyUrl(); Prior to this, saving an address of '/home/user/' would be changed to 'file:///home/user' (on Linux) normally (through applySettings()). However, when the listed methods were called, the text of the line edit would be just '/home/user/'. It will now (basically) be set to 'file:///'... all throughout. svn path=/trunk/KDE/kdebase/apps/; revision=920943 --- diff --git a/src/settings/startupsettingspage.cpp b/src/settings/startupsettingspage.cpp index 62d3c401e..fd79debc3 100644 --- a/src/settings/startupsettingspage.cpp +++ b/src/settings/startupsettingspage.cpp @@ -153,13 +153,15 @@ void StartupSettingsPage::useCurrentLocation() 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());