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