UI: Don't use deferred update on cancel

If properties are set to defer updating, don't call obs_source_update on
dialog rejection.
This commit is contained in:
jp9000 2015-03-25 13:29:45 -07:00
parent 9e39a2c787
commit 709ad0705e

View File

@ -143,7 +143,10 @@ void OBSBasicProperties::on_buttonBox_clicked(QAbstractButton *button)
obs_data_clear(settings);
obs_data_release(settings);
obs_source_update(source, oldSettings);
if (view->DeferUpdate())
obs_data_apply(settings, oldSettings);
else
obs_source_update(source, oldSettings);
close();
}