~ is no useful home folder in a Windows environment (thanks to Michael O'Shea for the patch!)

BUG: 156463
CCMAIL: michael.a.oshea@gmail.com

svn path=/trunk/KDE/kdebase/apps/; revision=775056
This commit is contained in:
Peter Penz 2008-02-14 20:11:51 +00:00
parent 731a32414f
commit 57e2cd9ae9
2 changed files with 4 additions and 1 deletions

View file

@ -13,7 +13,7 @@
</entry>
<entry name="HomeUrl" type="String">
<label context="@label">Home URL</label>
<default>~</default>
<default></default>
</entry>
<entry name="SplitView" type="Bool">
<label context="@label">Split the view into two panes</label>

View file

@ -612,6 +612,9 @@ void DolphinMainWindow::init()
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);