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
This commit is contained in:
Shaun Reich 2009-02-04 03:44:13 +00:00
parent fe4648e45b
commit 71c30d2590

View file

@ -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());