┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/viewproperties.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/viewproperties.cpp')
-rw-r--r--src/views/viewproperties.cpp8
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);