From 54eaf51880bf2db6708f1e41eb2e8a5732da423f Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Sat, 9 Aug 2014 22:07:32 +0300 Subject: [PATCH] When qBT is launched with a magnet don't show it in the transferlist while the metadata are being loaded in the background. --- src/qtlibtorrent/torrentmodel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/qtlibtorrent/torrentmodel.cpp b/src/qtlibtorrent/torrentmodel.cpp index 98ee17de7..b69aae2a4 100644 --- a/src/qtlibtorrent/torrentmodel.cpp +++ b/src/qtlibtorrent/torrentmodel.cpp @@ -235,7 +235,10 @@ void TorrentModel::populate() { std::vector::const_iterator it = torrents.begin(); std::vector::const_iterator itend = torrents.end(); for ( ; it != itend; ++it) { - addTorrent(QTorrentHandle(*it)); + const QTorrentHandle h(*it); + if (HiddenData::hasData(h.hash())) + continue; + addTorrent(h); } // Refresh timer connect(&m_refreshTimer, SIGNAL(timeout()), SLOT(forceModelRefresh()));