fixed saving of animations configuration based on expertMode().

This commit is contained in:
Hugo Pereira Da Costa 2011-07-18 10:09:22 +02:00
parent 9f12ecd91d
commit 43cae07762

View file

@ -156,14 +156,21 @@ namespace Oxygen
configuration.setDrawTitleOutline( ui->ui.titleOutline->isChecked() );
configuration.setUseDropShadows( ui->shadowConfigurations[1]->isChecked() );
configuration.setUseOxygenShadows( ui->shadowConfigurations[0]->isChecked() );
configuration.setAnimationsEnabled( ui->ui.animationsEnabled->isChecked() );
configuration.setUseNarrowButtonSpacing( ui->ui.narrowButtonSpacing->isChecked() );
// save into configuration
ui->animationConfigWidget()->setConfiguration( configuration );
ui->animationConfigWidget()->save();
configuration = ui->animationConfigWidget()->configuration();
if( ui->expertMode() )
{
ui->animationConfigWidget()->setConfiguration( configuration );
ui->animationConfigWidget()->save();
configuration = ui->animationConfigWidget()->configuration();
} else {
configuration.setAnimationsEnabled( ui->ui.animationsEnabled->isChecked() );
}
// save standard configuration
KConfigGroup configurationGroup( _configuration, "Windeco");
configurationGroup.deleteGroup();