From 18f99bf84e1d38ddd4c86d253ff81a178bc2fb22 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 21 Mar 2009 11:49:10 +0000 Subject: - Write the settings to the disk as soon as "Apply" or "OK" has been pressed inside a settings dialog. - Assure that the settings are saved in the DolphinPart destructor for settings that are changed outside the settings dialog (e. g. by using Ctrl + mouse wheel for adjusting the icon size). Thanks to Frank Reininghaus and David Faure for the analyses. CCBUG: 175085 svn path=/trunk/KDE/kdebase/apps/; revision=942194 --- src/dolphinpart.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/dolphinpart.cpp') diff --git a/src/dolphinpart.cpp b/src/dolphinpart.cpp index 40a62e844..c6076cc37 100644 --- a/src/dolphinpart.cpp +++ b/src/dolphinpart.cpp @@ -18,7 +18,6 @@ */ #include "dolphinpart.h" -#include #include "dolphinviewactionhandler.h" #include "dolphinsortfilterproxymodel.h" #include "dolphinview.h" @@ -44,6 +43,8 @@ #include #include +#include "settings/dolphinsettings.h" + #include #include #include @@ -140,6 +141,7 @@ DolphinPart::DolphinPart(QWidget* parentWidget, QObject* parent, const QVariantL DolphinPart::~DolphinPart() { + DolphinSettings::instance().save(); DolphinNewMenuObserver::instance().detach(m_newMenu); delete m_dirLister; } -- cgit v1.3