From 5517e4cf10c8aee590b404072aebaffb55bafec3 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 22 Sep 2010 18:10:45 +0000 Subject: If 'remember view-properties' is selected, store the .directory files only if the directory is part of the home-path. Otherwise use the mirror in ~/.kde/share/apps/dolphin/view_properties to store the .directory file. This prevents conflicting view-properties if several users have write-access to a common directory. BUG: 63347 FIXED-IN: 4.6.0 svn path=/trunk/KDE/kdebase/apps/; revision=1178321 --- src/views/viewproperties.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/views/viewproperties.h') diff --git a/src/views/viewproperties.h b/src/views/viewproperties.h index 2db67c0f3..787122d35 100644 --- a/src/views/viewproperties.h +++ b/src/views/viewproperties.h @@ -149,6 +149,11 @@ private: */ QString viewModePrefix() const; + /** + * Returns true, if \a filePath is part of the home-path (see QDir::homePath()). + */ + static bool isPartOfHome(const QString& filePath); + Q_DISABLE_COPY(ViewProperties) private: -- cgit v1.3