1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-02-04 19:04:30 +00:00

Blind implementation for auto-shutdown on Windows

This commit is contained in:
Christophe Dumez 2010-08-16 17:57:15 +00:00
parent e311239a28
commit d15e6a4847

View File

@ -233,7 +233,9 @@ void misc::shutdownComputer() {
AEDisposeDesc(&eventReply);
#endif
// TODO: Windows support
#ifdef Q_WS_WIN
InitiateSystemShutdownA(0, qPrintable(tr("qBittorrent will shutdown the computer now because all downloads are complete.")), 10, true, false);
#endif
}
QString misc::truncateRootFolder(boost::intrusive_ptr<torrent_info> t) {