mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 08:16:16 -07:00
Improve torrent loading code
This commit is contained in:
parent
eb99bfe20f
commit
dc3d23c045
11 changed files with 361 additions and 356 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue