From d89d9c2f751a8dc1bfd2895f08756b7dde5aa77f Mon Sep 17 00:00:00 2001 From: Ivan Sorokin Date: Sat, 11 Oct 2014 02:37:25 +0400 Subject: [PATCH] Fewer calls to torrent_handle::info_hash() --- src/qtlibtorrent/torrentmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qtlibtorrent/torrentmodel.cpp b/src/qtlibtorrent/torrentmodel.cpp index 3dca808c7..419361ec1 100644 --- a/src/qtlibtorrent/torrentmodel.cpp +++ b/src/qtlibtorrent/torrentmodel.cpp @@ -549,7 +549,7 @@ void TorrentModel::stateUpdated(const std::vector &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); }