mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 04:24:09 +00:00
Fix history saving while system shutdown
This commit is contained in:
parent
aceddb118d
commit
d21701785a
|
@ -945,8 +945,6 @@ MainWindow::~MainWindow()
|
|||
}
|
||||
|
||||
commitData();
|
||||
|
||||
history.save();
|
||||
}
|
||||
|
||||
void MainWindow::commitData( QSessionManager & )
|
||||
|
@ -970,6 +968,8 @@ void MainWindow::commitData()
|
|||
|
||||
// Save any changes in last chosen groups etc
|
||||
Config::save( cfg );
|
||||
|
||||
history.save();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue