┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-02-14 20:11:51 +0000
committerPeter Penz <[email protected]>2008-02-14 20:11:51 +0000
commit57e2cd9ae9ad4621b0ea82c5dd28c9e122aaa8df (patch)
tree4a4674b542b8641dbdd927462dc91cdb1f564d03 /src
parent731a32414fff61ed76ab426452393bd1119d326e (diff)
~ is no useful home folder in a Windows environment (thanks to Michael O'Shea for the patch!)
BUG: 156463 CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=775056
Diffstat (limited to 'src')
-rw-r--r--src/dolphin_generalsettings.kcfg2
-rw-r--r--src/dolphinmainwindow.cpp3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/dolphin_generalsettings.kcfg b/src/dolphin_generalsettings.kcfg
index 6149480b3..33b66a177 100644
--- a/src/dolphin_generalsettings.kcfg
+++ b/src/dolphin_generalsettings.kcfg
@@ -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>
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index 668f92b7c..e393b22d0 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -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);