Browse Source

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

adaptive-webui-19844
sledgehammer999 10 years ago
parent
commit
36cba3b354
  1. 5
      src/qtlibtorrent/torrentmodel.cpp

5
src/qtlibtorrent/torrentmodel.cpp

@ -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()));

Loading…
Cancel
Save