From ee290bc0141b177e0606e858b7a844a4ab30cb48 Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Tue, 27 Nov 2012 09:36:07 +0100 Subject: [PATCH] Clean changed state on load(); properly initialize changed state in constructor. --- clients/oxygen/config/oxygenanimationconfigwidget.cpp | 3 +++ clients/oxygen/config/oxygenconfigwidget.cpp | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/clients/oxygen/config/oxygenanimationconfigwidget.cpp b/clients/oxygen/config/oxygenanimationconfigwidget.cpp index 8b00f9f35f..79ccddc221 100644 --- a/clients/oxygen/config/oxygenanimationconfigwidget.cpp +++ b/clients/oxygen/config/oxygenanimationconfigwidget.cpp @@ -96,6 +96,9 @@ namespace Oxygen _tabAnimations->setEnabled( _configuration->tabAnimationsEnabled() ); _tabAnimations->setDuration( _configuration->tabAnimationsDuration() ); + + setChanged( false ); + } //_______________________________________________ diff --git a/clients/oxygen/config/oxygenconfigwidget.cpp b/clients/oxygen/config/oxygenconfigwidget.cpp index c84cf75eac..5cb212e9da 100644 --- a/clients/oxygen/config/oxygenconfigwidget.cpp +++ b/clients/oxygen/config/oxygenconfigwidget.cpp @@ -41,7 +41,8 @@ namespace Oxygen ConfigWidget::ConfigWidget( QWidget* parent ): QWidget( parent ), _expertMode( false ), - _animationConfigWidget(0) + _animationConfigWidget(0), + _changed( false ) { ui.setupUi( this ); @@ -111,6 +112,7 @@ namespace Oxygen ui.animationsEnabled->setChecked( _configuration->animationsEnabled() ); ui.narrowButtonSpacing->setChecked( _configuration->useNarrowButtonSpacing() ); ui.closeFromMenuButton->setChecked( _configuration->closeWindowFromMenuButton() ); + setChanged( false ); _animationConfigWidget->load();