Better fix

svn path=/trunk/KDE/kdebase/workspace/; revision=754680
icc-effect-5.14.5
Thomas Zander 2007-12-30 14:34:04 +00:00
parent 7cb4f3aa4c
commit 4b32f3820b
1 changed files with 13 additions and 2 deletions

View File

@ -283,8 +283,19 @@ void KWinCompositingConfig::saveEffectsTab()
void KWinCompositingConfig::save()
{
saveGeneralTab();
saveEffectsTab();
// bah; tab content being dependent on the other is really bad; and
// deprecated in the HIG for a reason. Its confusing!
// Make sure we only call save on each tab once; as they are stateful due to the revert concept
if (ui.tabWidget->currentIndex() == 0) { // general was active
saveGeneralTab();
loadEffectsTab();
saveEffectsTab();
}
else { // effects tab was active
saveEffectsTab();
loadGeneralTab();
saveGeneralTab();
}
// Copy Plugins group from temp config to real config
QMap<QString, QString> entries = mTmpConfig->entryMap("Plugins");