ui: Fix unsaved changes dialog showing twice

When clicking the close button with unsaved changes in a source properties
dialog closeEvent and reject are called, which both call ConfirmQuit.
This fixes it by setting the acceptClicked flag correctly in ConfirmQuit
This commit is contained in:
Matthew McNamara 2017-12-08 01:32:40 +01:00
parent 0497095f97
commit d8743a2872

View File

@ -288,6 +288,7 @@ bool OBSBasicProperties::ConfirmQuit()
switch (button) {
case QMessageBox::Save:
acceptClicked = true;
if (view->DeferUpdate())
view->UpdateSettings();
// Do nothing because the settings are already updated