1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-10 23:07:59 +00:00

Sync program preferences before computer shutdown to avoid loss

This commit is contained in:
Christophe Dumez 2011-03-26 08:37:42 +00:00
parent e247d0e5dc
commit a24dc147ab

View File

@ -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);
}