mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 06:28:03 -06:00
Improve torrent loading code
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user