mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-29 13:58:51 +03:00
Sync program preferences before computer shutdown to avoid loss
This commit is contained in:
parent
e247d0e5dc
commit
a24dc147ab
1 changed files with 2 additions and 0 deletions
|
@ -2111,6 +2111,8 @@ void QBtSession::readAlerts() {
|
|||
saveSessionState();
|
||||
qDebug("Saving fast resume data");
|
||||
saveFastResumeData();
|
||||
// Make sure preferences are synced before exiting
|
||||
pref.sync();
|
||||
qDebug("Sending computer shutdown/suspend signal");
|
||||
misc::shutdownComputer(suspend);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue