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:
parent
50bacdcfe3
commit
490531046a
1 changed files with 5 additions and 1 deletions
|
@ -250,7 +250,11 @@ bool KWinCompositingConfig::saveGeneralTab()
|
||||||
mPreviousConfig = config.entryMap();
|
mPreviousConfig = config.entryMap();
|
||||||
// Check if any critical settings that need confirmation have changed
|
// Check if any critical settings that need confirmation have changed
|
||||||
bool confirm = false;
|
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());
|
config.writeEntry("Enabled", ui.useCompositing->isChecked());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue