mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-30 08:24:22 +00:00
Merge pull request #6630 from evsh/fix-6454
Start up torrents after UI was created. Fixes #6454.
This commit is contained in:
commit
c27108c97a
@ -462,6 +462,9 @@ int Application::exec(const QStringList ¶ms)
|
|||||||
m_paramsQueue.clear();
|
m_paramsQueue.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Now UI is ready to process signals from Session
|
||||||
|
BitTorrent::Session::instance()->startUpTorrents();
|
||||||
|
|
||||||
return BaseApplication::exec();
|
return BaseApplication::exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -441,7 +441,6 @@ Session::Session(QObject *parent)
|
|||||||
Net::PortForwarder::initInstance(m_nativeSession);
|
Net::PortForwarder::initInstance(m_nativeSession);
|
||||||
|
|
||||||
qDebug("* BitTorrent Session constructed");
|
qDebug("* BitTorrent Session constructed");
|
||||||
startUpTorrents();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Session::isDHTEnabled() const
|
bool Session::isDHTEnabled() const
|
||||||
|
@ -333,6 +333,7 @@ namespace BitTorrent
|
|||||||
QStringList bannedIPs() const;
|
QStringList bannedIPs() const;
|
||||||
void setBannedIPs(const QStringList &list);
|
void setBannedIPs(const QStringList &list);
|
||||||
|
|
||||||
|
void startUpTorrents();
|
||||||
TorrentHandle *findTorrent(const InfoHash &hash) const;
|
TorrentHandle *findTorrent(const InfoHash &hash) const;
|
||||||
QHash<InfoHash, TorrentHandle *> torrents() const;
|
QHash<InfoHash, TorrentHandle *> torrents() const;
|
||||||
TorrentStatusReport torrentStatusReport() const;
|
TorrentStatusReport torrentStatusReport() const;
|
||||||
@ -463,7 +464,6 @@ namespace BitTorrent
|
|||||||
void enableIPFilter();
|
void enableIPFilter();
|
||||||
void disableIPFilter();
|
void disableIPFilter();
|
||||||
|
|
||||||
void startUpTorrents();
|
|
||||||
bool addTorrent_impl(AddTorrentData addData, const MagnetUri &magnetUri,
|
bool addTorrent_impl(AddTorrentData addData, const MagnetUri &magnetUri,
|
||||||
TorrentInfo torrentInfo = TorrentInfo(),
|
TorrentInfo torrentInfo = TorrentInfo(),
|
||||||
const QByteArray &fastresumeData = QByteArray());
|
const QByteArray &fastresumeData = QByteArray());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user