From 43cae07762ef01cf0b65cf1279645c1b30779e77 Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Mon, 18 Jul 2011 10:09:22 +0200 Subject: [PATCH] fixed saving of animations configuration based on expertMode(). --- clients/oxygen/config/oxygenconfig.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/clients/oxygen/config/oxygenconfig.cpp b/clients/oxygen/config/oxygenconfig.cpp index dbf391e341..dd94cfeda1 100644 --- a/clients/oxygen/config/oxygenconfig.cpp +++ b/clients/oxygen/config/oxygenconfig.cpp @@ -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();