config: save on preferences dialog accept

This commit is contained in:
itsmattkc
2022-05-14 15:02:32 -07:00
parent c75ee6014c
commit 8853665187
7 changed files with 35 additions and 22 deletions
+3 -5
View File
@@ -73,11 +73,9 @@ void ConfigDialogBase::accept()
tab->Accept(command);
}
if (command->child_count() == 0) {
delete command;
} else {
Core::instance()->undo_stack()->push(command);
}
Core::instance()->undo_stack()->pushIfHasChildren(command);
AcceptEvent();
QDialog::accept();
}