UI: Implement deferred update flag (properties)

This commit is contained in:
jp9000
2015-03-19 13:44:48 -07:00
committed by John Bradley
parent ef4ee1fd1a
commit dc36f6f420
3 changed files with 13 additions and 1 deletions

View File

@@ -117,6 +117,9 @@ void OBSBasicProperties::on_buttonBox_clicked(QAbstractButton *button)
if (val == QDialogButtonBox::AcceptRole) {
acceptClicked = true;
close();
if (view->DeferUpdate())
view->UpdateSettings();
}
if (val == QDialogButtonBox::RejectRole) {
@@ -260,6 +263,8 @@ bool OBSBasicProperties::ConfirmQuit()
switch (button) {
case QMessageBox::Save:
if (view->DeferUpdate())
view->UpdateSettings();
// Do nothing because the settings are already updated
break;
case QMessageBox::Discard: