mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
- Fix little problem in evenmanager causing this output: "no status, should not happen!!!"
This commit is contained in:
@@ -69,11 +69,12 @@ void EventManager::modifiedTorrent(QTorrentHandle h)
|
|||||||
case torrent_status::seeding:
|
case torrent_status::seeding:
|
||||||
event["state"] = QVariant("seeding");
|
event["state"] = QVariant("seeding");
|
||||||
break;
|
break;
|
||||||
|
case torrent_status::allocating:
|
||||||
case torrent_status::checking_files:
|
case torrent_status::checking_files:
|
||||||
case torrent_status::queued_for_checking:
|
case torrent_status::queued_for_checking:
|
||||||
|
case torrent_status::checking_resume_data:
|
||||||
event["state"] = QVariant("checking");
|
event["state"] = QVariant("checking");
|
||||||
break;
|
break;
|
||||||
case torrent_status::allocating:
|
|
||||||
case torrent_status::downloading:
|
case torrent_status::downloading:
|
||||||
case torrent_status::downloading_metadata:
|
case torrent_status::downloading_metadata:
|
||||||
if(h.download_payload_rate() > 0)
|
if(h.download_payload_rate() > 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user