Merge pull request #6630 from evsh/fix-6454

Start up torrents after UI was created. Fixes #6454.
This commit is contained in:
sledgehammer999 2017-04-17 16:44:03 +03:00 committed by GitHub
commit c27108c97a
3 changed files with 4 additions and 2 deletions

View File

@ -462,6 +462,9 @@ int Application::exec(const QStringList &params)
m_paramsQueue.clear();
}
// Now UI is ready to process signals from Session
BitTorrent::Session::instance()->startUpTorrents();
return BaseApplication::exec();
}

View File

@ -441,7 +441,6 @@ Session::Session(QObject *parent)
Net::PortForwarder::initInstance(m_nativeSession);
qDebug("* BitTorrent Session constructed");
startUpTorrents();
}
bool Session::isDHTEnabled() const

View File

@ -333,6 +333,7 @@ namespace BitTorrent
QStringList bannedIPs() const;
void setBannedIPs(const QStringList &list);
void startUpTorrents();
TorrentHandle *findTorrent(const InfoHash &hash) const;
QHash<InfoHash, TorrentHandle *> torrents() const;
TorrentStatusReport torrentStatusReport() const;
@ -463,7 +464,6 @@ namespace BitTorrent
void enableIPFilter();
void disableIPFilter();
void startUpTorrents();
bool addTorrent_impl(AddTorrentData addData, const MagnetUri &magnetUri,
TorrentInfo torrentInfo = TorrentInfo(),
const QByteArray &fastresumeData = QByteArray());