From b9b6f70cd50714f5f6a495ae296a0669eafff08e Mon Sep 17 00:00:00 2001 From: jp9000 Date: Wed, 21 Sep 2016 21:20:49 -0700 Subject: [PATCH] UI: Make sure all dialogs are closed when hiding window Fixes a crash that could happen where you close the window while the main window is hiding, and then the app mistakenly thinks that "all windows are closed" and initiates shutdown while the main window is still active but hidden. --- UI/window-basic-main.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UI/window-basic-main.hpp b/UI/window-basic-main.hpp index 04453fecf..da1faaa01 100644 --- a/UI/window-basic-main.hpp +++ b/UI/window-basic-main.hpp @@ -366,6 +366,8 @@ private slots: bool showing = isVisible(); if (disableHiding && showing) return; + if (showing) + CloseDialogs(); SetShowing(!showing); }