config: save on preferences dialog accept
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user