diff options
| author | Peter Penz <[email protected]> | 2010-12-15 16:40:32 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2010-12-15 16:40:32 +0000 |
| commit | 8061c3fb90c787ae76b4d5e213cc7f84ba92f4a4 (patch) | |
| tree | 62b5fd17fbe5f2925a9b51ee2d149f7ed0b410b5 /src/views/viewproperties.cpp | |
| parent | e587aaa9c4b895119d64a843eb400102e1372885 (diff) | |
If "Use common view properties for all folders" is checked, the optimized view-modes for trash and searching should be replaced by the common view properties too.
BUG: 259894
FIXED-IN: 4.6.0
svn path=/trunk/KDE/kdebase/apps/; revision=1206728
Diffstat (limited to 'src/views/viewproperties.cpp')
| -rw-r--r-- | src/views/viewproperties.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/views/viewproperties.cpp b/src/views/viewproperties.cpp index ed055e09e..0e50dcec7 100644 --- a/src/views/viewproperties.cpp +++ b/src/views/viewproperties.cpp @@ -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); |
