]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Initially I thought it's better not having code as default value inside dolphin_gener...
authorPeter Penz <peter.penz19@gmail.com>
Fri, 15 Feb 2008 23:13:47 +0000 (23:13 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Fri, 15 Feb 2008 23:13:47 +0000 (23:13 +0000)
CCMAIL: michael.a.oshea@gmail.com

svn path=/trunk/KDE/kdebase/apps/; revision=775494

src/dolphin_generalsettings.kcfg
src/dolphinmainwindow.cpp
src/startupsettingspage.cpp

index 33b66a1772af71ba645f13d3bb0ec6368f4a82ca..840d8a42dea7d9daa0fcf33e7c7d8723abd1b1fd 100644 (file)
@@ -2,6 +2,7 @@
 <!DOCTYPE kcfg SYSTEM "http://www.kde.org/standards/kcfg/1.0/kcfg.dtd">
 <kcfg>
     <kcfgfile name="dolphinrc"/>
+    <include>QDir</include>
     <group name="General">
         <entry name="EditableUrl" type="Bool">
             <label context="@label">Should the URL be editable for the user</label>
@@ -13,7 +14,7 @@
         </entry>
         <entry name="HomeUrl" type="String">
             <label context="@label">Home URL</label>
-            <default></default>
+            <default code="true">QDir::homePath()</default>
         </entry>
         <entry name="SplitView" type="Bool">
             <label context="@label">Split the view into two panes</label>
index d4276d49236ed8457e7d8b2d4c9c49e9fe5eef09..dd8b02efbe183bc25d4a0960076f9bc934b56ca1 100644 (file)
@@ -614,9 +614,6 @@ 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);
index a7c62254e55b8f02c11b718c55d7ea5580aa6a0a..d056c91a6fc8c7178a3caee121ed599b55ebdbbe 100644 (file)
@@ -140,7 +140,7 @@ void StartupSettingsPage::useCurrentLocation()
 
 void StartupSettingsPage::useDefaultLocation()
 {
-    m_homeUrl->setText("file://" + QDir::homePath());
+    m_homeUrl->setText(QDir::homePath());
 }
 
 void StartupSettingsPage::loadSettings()