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
This commit is contained in:
SuslikV 2017-08-02 18:15:10 +02:00 committed by jp9000
parent abc9b94621
commit 77ddce3f9a

View file

@ -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()