]> cloud.milkyroute.net Git - dolphin.git/commitdiff
fixed issue that when using "Use common view properties for all folders" the view...
authorPeter Penz <peter.penz19@gmail.com>
Thu, 6 Dec 2007 21:36:52 +0000 (21:36 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Thu, 6 Dec 2007 21:36:52 +0000 (21:36 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=745711

src/viewproperties.cpp

index 30346a862ab82ab0817ff89b7a8595df47e21ea3..b46ecb87e13cad8cc6c35159cdc8ab278d801ebf 100644 (file)
@@ -59,7 +59,8 @@ ViewProperties::ViewProperties(const KUrl& url) :
     m_filepath = cleanUrl.path();
 
     if ((m_filepath.length() < 1) || (m_filepath.at(0) != QChar('/'))) {
-        m_node = new ViewPropertySettings();
+        const QString file = destinationDir("global") + FILE_NAME;
+        m_node = new ViewPropertySettings(KSharedConfig::openConfig(file));
         return;
     }
 
@@ -79,7 +80,7 @@ ViewProperties::ViewProperties(const KUrl& url) :
         m_filepath = destinationDir("remote") + m_filepath;
     }
 
-    const QString file(m_filepath + FILE_NAME);
+    const QString file = m_filepath + FILE_NAME;
     m_node = new ViewPropertySettings(KSharedConfig::openConfig(file));
 
     const bool useDefaultProps = !useGlobalViewProps &&