A confirmation dialog with timeout does not really make that much sense

when turning compositing off.


svn path=/trunk/KDE/kdebase/workspace/; revision=719249
This commit is contained in:
Luboš Luňák 2007-09-30 17:36:59 +00:00
parent 50bacdcfe3
commit 490531046a

View file

@ -250,7 +250,11 @@ bool KWinCompositingConfig::saveGeneralTab()
mPreviousConfig = config.entryMap();
// Check if any critical settings that need confirmation have changed
bool confirm = false;
confirm |= (ui.useCompositing->isChecked() != config.readEntry("Enabled", mDefaultPrefs.enableCompositing()));
if(ui.useCompositing->isChecked()
&& ui.useCompositing->isChecked() != config.readEntry("Enabled", mDefaultPrefs.enableCompositing()))
{
confirm = true;
}
config.writeEntry("Enabled", ui.useCompositing->isChecked());