From 77ddce3f9a9bf8c7bcb87c65d8dc1d0882552df4 Mon Sep 17 00:00:00 2001 From: SuslikV Date: Wed, 2 Aug 2017 18:15:10 +0200 Subject: [PATCH] UI: Fix stats window geometry saving on shutdown Possible fix for: https://obsproject.com/mantis/view.php?id=923 If you close whole application (not just stats window) it skips the close event and thus saving of the geometry. The Qt::WA_DeleteOnClose was set earlier. Closes jp9000/obs-studio#984 --- UI/window-basic-main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index 81fbef94f..7eb624a90 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -2943,7 +2943,7 @@ void OBSBasic::CloseDialogs() projector.clear(); } - delete stats; + if (!stats.isNull()) stats->close(); //call close to save Stats geometry } void OBSBasic::EnumDialogs()