1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-29 21:45:32 +00:00

fixed user settings not being saved when last document window is closed while user settings window is still open

This commit is contained in:
Marc Zinnschlag 2015-12-15 14:56:29 +01:00
parent d6bd2cb1f0
commit be19da189a
2 changed files with 8 additions and 0 deletions

View file

@ -71,6 +71,12 @@ CSVPrefs::Dialogue::Dialogue()
buildContentArea (main);
}
CSVPrefs::Dialogue::~Dialogue()
{
if (isVisible())
CSMPrefs::State::get().save();
}
void CSVPrefs::Dialogue::closeEvent (QCloseEvent *event)
{
QMainWindow::closeEvent (event);

View file

@ -31,6 +31,8 @@ namespace CSVPrefs
Dialogue();
virtual ~Dialogue();
protected:
void closeEvent (QCloseEvent *event);