]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Only store the HomeUrl in dolphinrc if it is not the user's home folder
authorFrank Reininghaus <frank78ac@googlemail.com>
Wed, 31 Oct 2012 21:43:40 +0000 (22:43 +0100)
committerFrank Reininghaus <frank78ac@googlemail.com>
Wed, 31 Oct 2012 21:48:59 +0000 (22:48 +0100)
This fixes the problem that copying the dolphinrc from another user
results in Dolphin starting up in a folder that might wither not be
accessible or not exist at all.

BUG: 308569
FIXED-IN: 4.9.3

src/settings/dolphin_generalsettings.kcfg

index 05075019931266af40a1b9bc25093778e56ce0fa..849a9c75c485d183d7139e855f248506a0459887 100644 (file)
@@ -5,6 +5,7 @@
       xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
       http://www.kde.org/standards/kcfg/1.0/kcfg.xsd">
     <include>QDir</include>
+    <include>KUrl</include>
     <include>kglobalsettings.h</include>
     <kcfgfile name="dolphinrc"/>
     <group name="General">
@@ -30,7 +31,7 @@
         </entry>
         <entry name="HomeUrl" type="String">
             <label>Home URL</label>
-            <default code="true">QDir::homePath()</default>
+            <default code="true">KUrl(QDir::homePath()).prettyUrl()</default>
         </entry>
         <entry name="SplitView" type="Bool">
             <label>Split the view into two panes</label>