diff --git a/kcmkwin/kwincompositing/main.cpp b/kcmkwin/kwincompositing/main.cpp index 8dd32f71eb..d086aa74fa 100644 --- a/kcmkwin/kwincompositing/main.cpp +++ b/kcmkwin/kwincompositing/main.cpp @@ -855,6 +855,7 @@ void KWinCompositingConfig::copyPluginsToTmpConfig() KConfigGroup newGroup( mNewConfig, "Plugins" ); KConfigGroup tmpGroup( mTmpConfig, "Plugins" ); tmpGroup.deleteGroup(); + mTmpConfig->sync(); newGroup.copyTo( &tmpGroup ); } @@ -863,6 +864,7 @@ void KWinCompositingConfig::copyPluginsToNewConfig() KConfigGroup newGroup( mNewConfig, "Plugins" ); KConfigGroup tmpGroup( mTmpConfig, "Plugins" ); newGroup.deleteGroup(); + mNewConfig->sync(); tmpGroup.copyTo( &newGroup ); } diff --git a/options.cpp b/options.cpp index 45f5466ca2..a7ceb5aef3 100644 --- a/options.cpp +++ b/options.cpp @@ -51,9 +51,9 @@ Options::Options() // If there is any contents in the backup file, it means that KWin crashed // while testing a new config. Revert the config. // TODO: Notify the user? - bool backupImported = importBackup(); - kWarning( 1212, backupImported ) << "The new settings have most likely caused the X server " - "to crash. The configuration options have been reverted to their old values."; + if( importBackup() ) + kWarning( 1212 ) << "The new settings have most likely caused the X server " + "to crash. The configuration options have been reverted to their old values."; updateSettings(); }