mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-28 08:37:12 +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:
parent
d6bd2cb1f0
commit
be19da189a
@ -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);
|
||||
|
@ -31,6 +31,8 @@ namespace CSVPrefs
|
||||
|
||||
Dialogue();
|
||||
|
||||
virtual ~Dialogue();
|
||||
|
||||
protected:
|
||||
|
||||
void closeEvent (QCloseEvent *event);
|
||||
|
Loading…
x
Reference in New Issue
Block a user