mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 16:31:21 +00:00
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
This commit is contained in:
parent
e651545527
commit
1d2e10bcb2
|
@ -59,7 +59,8 @@ ViewProperties::ViewProperties(const KUrl& url) :
|
||||||
m_filepath = cleanUrl.path();
|
m_filepath = cleanUrl.path();
|
||||||
|
|
||||||
if ((m_filepath.length() < 1) || (m_filepath.at(0) != QChar('/'))) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,7 +80,7 @@ ViewProperties::ViewProperties(const KUrl& url) :
|
||||||
m_filepath = destinationDir("remote") + m_filepath;
|
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));
|
m_node = new ViewPropertySettings(KSharedConfig::openConfig(file));
|
||||||
|
|
||||||
const bool useDefaultProps = !useGlobalViewProps &&
|
const bool useDefaultProps = !useGlobalViewProps &&
|
||||||
|
|
Loading…
Reference in a new issue