From fab5eb5ba3a7aac350d3a29dd1135bc60e37d125 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Mon, 6 Jul 2015 19:00:25 -0700 Subject: [PATCH] UI: Properly ensure save on exit I broke the save that happens on exit by making all project saves put on the message queue. The save on exit would put the save on to the message queue, then by the time the save occurred obs would already be shut down. This just calls the save function directly rather than deferring it to the message queue. --- obs/window-basic-main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/obs/window-basic-main.cpp b/obs/window-basic-main.cpp index c8cf13f89..267f6222a 100644 --- a/obs/window-basic-main.cpp +++ b/obs/window-basic-main.cpp @@ -2199,7 +2199,8 @@ void OBSBasic::closeEvent(QCloseEvent *event) // the destructor gets called obs_remove_draw_callback(OBSBasic::RenderMain, this); - SaveProject(); + projectChanged = true; + SaveProjectDeferred(); disableSaving++; /* Clear all scene data (dialogs, widgets, widget sub-items, scenes,