]> cloud.milkyroute.net Git - dolphin.git/commitdiff
If "Use common view properties for all folders" is checked, the optimized view-modes...
authorPeter Penz <peter.penz19@gmail.com>
Wed, 15 Dec 2010 16:40:32 +0000 (16:40 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Wed, 15 Dec 2010 16:40:32 +0000 (16:40 +0000)
BUG: 259894
FIXED-IN: 4.6.0

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

src/views/viewproperties.cpp

index ed055e09e2f7fc93a4e2bdd2f781537f31d8bf6a..0e50dcec7278987e40e6fc86db3cd39f2915d749 100644 (file)
@@ -49,19 +49,19 @@ ViewProperties::ViewProperties(const KUrl& url) :
 {
     GeneralSettings* settings = DolphinSettings::instance().generalSettings();
     const bool useGlobalViewProps = settings->globalViewProps();
+    bool useDetailsViewWithPath = false;
 
     // We try and save it to the file .directory in the directory being viewed.
     // If the directory is not writable by the user or the directory is not local,
     // we store the properties information in a local file.
-    bool useDetailsViewWithPath = false;
-    if (url.protocol().contains("search")) {
+    if (useGlobalViewProps) {
+        m_filePath = destinationDir("global");
+    } else if (url.protocol().contains("search")) {
         m_filePath = destinationDir("search");
         useDetailsViewWithPath = true;
     } else if (url.protocol() == QLatin1String("trash")) {
         m_filePath = destinationDir("trash");
         useDetailsViewWithPath = true;
-    } else if (useGlobalViewProps) {
-        m_filePath = destinationDir("global");
     } else if (url.isLocalFile()) {
         m_filePath = url.toLocalFile();
         const QFileInfo info(m_filePath);