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.
This commit is contained in:
jp9000 2016-09-21 21:20:49 -07:00
parent 406a8c89ca
commit b9b6f70cd5

View File

@ -366,6 +366,8 @@ private slots:
bool showing = isVisible();
if (disableHiding && showing)
return;
if (showing)
CloseDialogs();
SetShowing(!showing);
}