Browse Source

Sync program preferences before computer shutdown to avoid loss

adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
a24dc147ab
  1. 2
      src/qtlibtorrent/qbtsession.cpp

2
src/qtlibtorrent/qbtsession.cpp

@ -2111,6 +2111,8 @@ void QBtSession::readAlerts() { @@ -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…
Cancel
Save