1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-12 07:48:04 +00:00

Correctly check if torrent passed during application start already exists.

This commit is contained in:
sledgehammer999 2017-11-20 23:40:09 +02:00
parent a38730eb9e
commit 81f5fdda15
No known key found for this signature in database
GPG Key ID: 6E4A2D025B7CC9A2

View File

@ -519,15 +519,15 @@ int Application::exec(const QStringList &params)
#endif // DISABLE_GUI
m_running = true;
// Now UI is ready to process signals from Session
BitTorrent::Session::instance()->startUpTorrents();
m_paramsQueue = params + m_paramsQueue;
if (!m_paramsQueue.isEmpty()) {
processParams(m_paramsQueue);
m_paramsQueue.clear();
}
// Now UI is ready to process signals from Session
BitTorrent::Session::instance()->startUpTorrents();
return BaseApplication::exec();
}