┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinpart.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-03-21 11:49:10 +0000
committerPeter Penz <[email protected]>2009-03-21 11:49:10 +0000
commit18f99bf84e1d38ddd4c86d253ff81a178bc2fb22 (patch)
tree329ef5a5a603c14127303614dbc296dfa7c54362 /src/dolphinpart.cpp
parent75ff72c553d20c2d074ed381ad49ee61b59bfcc0 (diff)
- 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
Diffstat (limited to 'src/dolphinpart.cpp')
-rw-r--r--src/dolphinpart.cpp4
1 files changed, 3 insertions, 1 deletions
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 <kdebug.h>
#include "dolphinviewactionhandler.h"
#include "dolphinsortfilterproxymodel.h"
#include "dolphinview.h"
@@ -44,6 +43,8 @@
#include <knewmenu.h>
#include <kmenu.h>
+#include "settings/dolphinsettings.h"
+
#include <QActionGroup>
#include <QApplication>
#include <QClipboard>
@@ -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;
}