diff options
| author | Peter Penz <[email protected]> | 2007-12-06 21:36:52 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-12-06 21:36:52 +0000 |
| commit | 1d2e10bcb220ed4505ba322b11e21dbd06d1f4b7 (patch) | |
| tree | d9b4691efa2a4d91ffa92eca554df5a40f0ca4f3 /src/viewproperties.cpp | |
| parent | e65154552769e648bcbe14429123ff9fcd48bd29 (diff) | |
fixed issue that when using "Use common view properties for all folders" the view mode is reset to "icons" when using e. g. the FTP protocol
svn path=/trunk/KDE/kdebase/apps/; revision=745711
Diffstat (limited to 'src/viewproperties.cpp')
| -rw-r--r-- | src/viewproperties.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/viewproperties.cpp b/src/viewproperties.cpp index 30346a862..b46ecb87e 100644 --- a/src/viewproperties.cpp +++ b/src/viewproperties.cpp @@ -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 && |
