From 34db2f5dd96669676b859d8dba8b67e577fd1085 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Mon, 18 Apr 2016 00:08:55 +0800 Subject: [PATCH] Fix qBittorrent doesn't exit immediately when "all donwloads are done -> exit" option enabled. This fix is provided by glassez. --- src/app/application.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/application.cpp b/src/app/application.cpp index b2f4f5477..b8a1a1975 100644 --- a/src/app/application.cpp +++ b/src/app/application.cpp @@ -363,7 +363,7 @@ int Application::exec(const QStringList ¶ms) BitTorrent::Session::initInstance(); connect(BitTorrent::Session::instance(), SIGNAL(torrentFinished(BitTorrent::TorrentHandle *const)), SLOT(torrentFinished(BitTorrent::TorrentHandle *const))); - connect(BitTorrent::Session::instance(), SIGNAL(allTorrentsFinished()), SLOT(allTorrentsFinished())); + connect(BitTorrent::Session::instance(), SIGNAL(allTorrentsFinished()), SLOT(allTorrentsFinished()), Qt::QueuedConnection); #ifndef DISABLE_COUNTRIES_RESOLUTION Net::GeoIPManager::initInstance();