Better fix
svn path=/trunk/KDE/kdebase/workspace/; revision=754680
This commit is contained in:
parent
7cb4f3aa4c
commit
4b32f3820b
1 changed files with 13 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue