Improve torrent loading code

This commit is contained in:
Vladimir Golovnev (Glassez) 2020-08-05 08:31:41 +03:00
parent eb99bfe20f
commit dc3d23c045
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7
11 changed files with 361 additions and 356 deletions

View file

@ -137,7 +137,7 @@ TransferListModel::TransferListModel(QObject *parent)
addTorrent(torrent);
// Listen for torrent changes
connect(Session::instance(), &Session::torrentAdded, this, &TransferListModel::addTorrent);
connect(Session::instance(), &Session::torrentLoaded, this, &TransferListModel::addTorrent);
connect(Session::instance(), &Session::torrentAboutToBeRemoved, this, &TransferListModel::handleTorrentAboutToBeRemoved);
connect(Session::instance(), &Session::torrentsUpdated, this, &TransferListModel::handleTorrentsUpdated);