Sync program preferences before computer shutdown to avoid loss

This commit is contained in:
Christophe Dumez
2011-03-26 08:40:00 +00:00
parent 553e22bbb4
commit 141618660f
2 changed files with 3 additions and 0 deletions

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