From 7d07debcb5f27366b323d7a596578b30afd15b95 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 20 Aug 2010 09:35:28 +0000 Subject: [PATCH] Cleaner program exit on Auto-shutdown --- src/bittorrent.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 849a494ff..7814f5b80 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -2056,7 +2056,8 @@ void Bittorrent::addConsoleMessage(QString msg, QString) { qDebug("Sending computer shutdown signal"); misc::shutdownComputer(); qDebug("Exiting the application"); - exit(0); + qApp->exit(); + return; } } }