Browse Source

Correctly check if torrent passed during application start already exists.

adaptive-webui-19844
sledgehammer999 7 years ago
parent
commit
81f5fdda15
No known key found for this signature in database
GPG Key ID: 6E4A2D025B7CC9A2
  1. 8
      src/app/application.cpp

8
src/app/application.cpp

@ -519,15 +519,15 @@ int Application::exec(const QStringList &params) @@ -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();
}

Loading…
Cancel
Save