From 36cba3b3546ab31794fc0ea2c87b3e306755c1a0 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 745e30611..bb836baeb 100644 --- a/src/qtlibtorrent/torrentmodel.cpp +++ b/src/qtlibtorrent/torrentmodel.cpp @@ -277,7 +277,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()));