UI: Move OBSBasicSettings to scoped block

This ensures that the OBSBasicSettings destructor has been run before
the restart prompt appears, preventing bugs related to OBS shutting down
with the settings window still having active callbacks.
This commit is contained in:
Richard Stanway 2020-03-02 23:21:26 +01:00
parent 2f0134bf60
commit 8f4f33aed8

View file

@ -4043,8 +4043,11 @@ void OBSBasic::on_action_Settings_triggered()
settings_already_executing = true;
OBSBasicSettings settings(this);
settings.exec();
{
OBSBasicSettings settings(this);
settings.exec();
}
SystemTray(false);
settings_already_executing = false;