┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/viewpropertiesdialog.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-02-18 18:54:22 +0000
committerPeter Penz <[email protected]>2007-02-18 18:54:22 +0000
commitbd8b41a13577eb197b721d00303c7056926502bf (patch)
tree475f85a3f4aaa010a28d14b9343b762f0caa24c4 /src/viewpropertiesdialog.cpp
parentabf17941f7a052d25788d2f2f3c84e5aae935e29 (diff)
Don't use a hardcoded path in the view properties dialog for the mirrored directory, ask the class ViewProperties for the location instead.
svn path=/trunk/KDE/kdebase/apps/; revision=634899
Diffstat (limited to 'src/viewpropertiesdialog.cpp')
-rw-r--r--src/viewpropertiesdialog.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/viewpropertiesdialog.cpp b/src/viewpropertiesdialog.cpp
index 350113a3c..93c377887 100644
--- a/src/viewpropertiesdialog.cpp
+++ b/src/viewpropertiesdialog.cpp
@@ -266,10 +266,8 @@ void ViewPropertiesDialog::applyViewProperties()
settings->setViewPropsTimestamp(QDateTime::currentDateTime());
// This is also a good chance to make a cleanup of all mirrored view properties:
- QString basePath = KGlobal::mainComponent().componentName();
- basePath.append("/view_properties/");
- const QString mirroredViewProps = KStandardDirs::locateLocal("data", basePath);
- KIO::NetAccess::del(mirroredViewProps, this);
+ const KUrl mirroredDir = ViewProperties::mirroredDirectory();
+ KIO::NetAccess::del(mirroredDir, this);
}
m_viewProps->save();
@@ -292,7 +290,6 @@ void ViewPropertiesDialog::applyViewProperties()
settings->setGlobalViewProps(true);
ViewProperties defaultProps(m_dolphinView->url());
defaultProps.setDirProperties(*m_viewProps);
- kDebug() << "saving global viewprops" << endl;
defaultProps.save();
settings->setGlobalViewProps(false);
}