Browse Source

Fewer calls to torrent_handle::info_hash()

adaptive-webui-19844
Ivan Sorokin 10 years ago
parent
commit
d89d9c2f75
  1. 2
      src/qtlibtorrent/torrentmodel.cpp

2
src/qtlibtorrent/torrentmodel.cpp

@ -549,7 +549,7 @@ void TorrentModel::stateUpdated(const std::vector<libtorrent::torrent_status> &s @@ -549,7 +549,7 @@ void TorrentModel::stateUpdated(const std::vector<libtorrent::torrent_status> &s
for (statuses_t::const_iterator i = statuses.begin(), end = statuses.end(); i != end; ++i) {
libtorrent::torrent_status const& status = *i;
const int row = torrentRow(misc::toQString(status.handle.info_hash()));
const int row = torrentRow(misc::toQString(status.info_hash));
if (row >= 0)
m_torrents[row]->refreshStatus(status);
}

Loading…
Cancel
Save