1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-24 05:25:37 +00:00

When qBT is launched with a magnet don't show it in the transferlist while the metadata are being loaded in the background.

This commit is contained in:
sledgehammer999 2014-08-09 22:07:32 +03:00
parent 30bc5a1da6
commit 36cba3b354

View File

@ -277,7 +277,10 @@ void TorrentModel::populate() {
std::vector<torrent_handle>::const_iterator it = torrents.begin(); std::vector<torrent_handle>::const_iterator it = torrents.begin();
std::vector<torrent_handle>::const_iterator itend = torrents.end(); std::vector<torrent_handle>::const_iterator itend = torrents.end();
for ( ; it != itend; ++it) { for ( ; it != itend; ++it) {
addTorrent(QTorrentHandle(*it)); const QTorrentHandle h(*it);
if (HiddenData::hasData(h.hash()))
continue;
addTorrent(h);
} }
// Refresh timer // Refresh timer
connect(&m_refreshTimer, SIGNAL(timeout()), SLOT(forceModelRefresh())); connect(&m_refreshTimer, SIGNAL(timeout()), SLOT(forceModelRefresh()));