Clean changed state on load();

properly initialize changed state in constructor.
This commit is contained in:
Hugo Pereira Da Costa 2012-11-27 09:36:07 +01:00
parent 30df048632
commit ee290bc014
2 changed files with 6 additions and 1 deletions

View file

@ -96,6 +96,9 @@ namespace Oxygen
_tabAnimations->setEnabled( _configuration->tabAnimationsEnabled() );
_tabAnimations->setDuration( _configuration->tabAnimationsDuration() );
setChanged( false );
}
//_______________________________________________

View file

@ -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();