|
|
@ -566,9 +566,7 @@ int Application::exec(const QStringList ¶ms) |
|
|
|
connect(BitTorrent::Session::instance(), &BitTorrent::Session::torrentFinished, this, &Application::torrentFinished); |
|
|
|
connect(BitTorrent::Session::instance(), &BitTorrent::Session::torrentFinished, this, &Application::torrentFinished); |
|
|
|
connect(BitTorrent::Session::instance(), &BitTorrent::Session::allTorrentsFinished, this, &Application::allTorrentsFinished, Qt::QueuedConnection); |
|
|
|
connect(BitTorrent::Session::instance(), &BitTorrent::Session::allTorrentsFinished, this, &Application::allTorrentsFinished, Qt::QueuedConnection); |
|
|
|
|
|
|
|
|
|
|
|
#ifndef DISABLE_COUNTRIES_RESOLUTION |
|
|
|
|
|
|
|
Net::GeoIPManager::initInstance(); |
|
|
|
Net::GeoIPManager::initInstance(); |
|
|
|
#endif |
|
|
|
|
|
|
|
ScanFoldersModel::initInstance(); |
|
|
|
ScanFoldersModel::initInstance(); |
|
|
|
|
|
|
|
|
|
|
|
#ifndef DISABLE_WEBUI |
|
|
|
#ifndef DISABLE_WEBUI |
|
|
@ -760,9 +758,7 @@ void Application::cleanup() |
|
|
|
|
|
|
|
|
|
|
|
ScanFoldersModel::freeInstance(); |
|
|
|
ScanFoldersModel::freeInstance(); |
|
|
|
BitTorrent::Session::freeInstance(); |
|
|
|
BitTorrent::Session::freeInstance(); |
|
|
|
#ifndef DISABLE_COUNTRIES_RESOLUTION |
|
|
|
|
|
|
|
Net::GeoIPManager::freeInstance(); |
|
|
|
Net::GeoIPManager::freeInstance(); |
|
|
|
#endif |
|
|
|
|
|
|
|
Net::DownloadManager::freeInstance(); |
|
|
|
Net::DownloadManager::freeInstance(); |
|
|
|
Net::ProxyConfigurationManager::freeInstance(); |
|
|
|
Net::ProxyConfigurationManager::freeInstance(); |
|
|
|
Preferences::freeInstance(); |
|
|
|
Preferences::freeInstance(); |
|
|
|