]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/viewproperties.cpp
a lot of more KUrl::path() -> KUrl::toLocalFile() changes (mostly after a check for...
[dolphin.git] / src / viewproperties.cpp
index 9b173d1c4eb920bc5ed8aa124e40964ea6c06a83..510e4195b1751bb4960dd4f9d721e9c08a584282 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "viewproperties.h"
 
-#include "dolphinsettings.h"
+#include "settings/dolphinsettings.h"
 #include "dolphin_directoryviewpropertysettings.h"
 #include "dolphin_generalsettings.h"
 
@@ -56,9 +56,9 @@ ViewProperties::ViewProperties(const KUrl& url) :
 
     KUrl cleanUrl(url);
     cleanUrl.cleanPath();
-    m_filepath = cleanUrl.path();
+    m_filepath = cleanUrl.toLocalFile();
 
-    if ((m_filepath.length() < 1) || (m_filepath.at(0) != QChar('/'))) {
+    if ((m_filepath.length() < 1) || (!QDir::isAbsolutePath(m_filepath))) {
         const QString file = destinationDir("global") + FILE_NAME;
         m_node = new ViewPropertySettings(KSharedConfig::openConfig(file));
         return;