mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-03 22:22:33 -06:00
Sync program preferences before computer shutdown to avoid loss
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
- BUGFIX: Fix possible crash when changing the priority of a file
|
- BUGFIX: Fix possible crash when changing the priority of a file
|
||||||
- BUGFIX: Magnet link association fix on Win32 (sledgehammer999)
|
- BUGFIX: Magnet link association fix on Win32 (sledgehammer999)
|
||||||
- BUGFIX: Easier compilation on Win32 using MinGW (sledgehammer999)
|
- BUGFIX: Easier compilation on Win32 using MinGW (sledgehammer999)
|
||||||
|
- BUGFIX: Sync program preferences before computer shutdown to avoid loss
|
||||||
- I18N: Updated German, Italian, Hungarian, Portuguese, Brazilian,
|
- I18N: Updated German, Italian, Hungarian, Portuguese, Brazilian,
|
||||||
Spanish and Catalan translations
|
Spanish and Catalan translations
|
||||||
|
|
||||||
|
|||||||
@@ -2111,6 +2111,8 @@ void QBtSession::readAlerts() {
|
|||||||
saveSessionState();
|
saveSessionState();
|
||||||
qDebug("Saving fast resume data");
|
qDebug("Saving fast resume data");
|
||||||
saveFastResumeData();
|
saveFastResumeData();
|
||||||
|
// Make sure preferences are synced before exiting
|
||||||
|
pref.sync();
|
||||||
qDebug("Sending computer shutdown/suspend signal");
|
qDebug("Sending computer shutdown/suspend signal");
|
||||||
misc::shutdownComputer(suspend);
|
misc::shutdownComputer(suspend);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user