Better fix

svn path=/trunk/KDE/kdebase/workspace/; revision=754680
This commit is contained in:
Thomas Zander 2007-12-30 14:34:04 +00:00
parent 7cb4f3aa4c
commit 4b32f3820b

View file

@ -283,8 +283,19 @@ void KWinCompositingConfig::saveEffectsTab()
void KWinCompositingConfig::save() void KWinCompositingConfig::save()
{ {
saveGeneralTab(); // bah; tab content being dependent on the other is really bad; and
saveEffectsTab(); // 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 // Copy Plugins group from temp config to real config
QMap<QString, QString> entries = mTmpConfig->entryMap("Plugins"); QMap<QString, QString> entries = mTmpConfig->entryMap("Plugins");