mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 05:13:30 -07:00
Fewer calls to torrent_handle::info_hash()
This commit is contained in:
parent
2bc9e2c1a5
commit
d89d9c2f75
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
for (statuses_t::const_iterator i = statuses.begin(), end = statuses.end(); i != end; ++i) {
|
||||||
libtorrent::torrent_status const& status = *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)
|
if (row >= 0)
|
||||||
m_torrents[row]->refreshStatus(status);
|
m_torrents[row]->refreshStatus(status);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue