]> cloud.milkyroute.net Git - dolphin.git/commitdiff
KUrl::path() != KUrl::toLocalFile() - at least not on windows
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>
Tue, 24 Feb 2009 19:20:14 +0000 (19:20 +0000)
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>
Tue, 24 Feb 2009 19:20:14 +0000 (19:20 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=931093

src/viewproperties.cpp

index 62898e67004d43bb25a24db5a2194885244d5e7a..510e4195b1751bb4960dd4f9d721e9c08a584282 100644 (file)
@@ -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;