mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 23:17:21 -06:00
FEATURE: Added error state for torrents (error is displayed in a tooltip)
This commit is contained in:
@@ -364,10 +364,14 @@ void EventManager::modifiedTorrent(QTorrentHandle h)
|
||||
QVariantMap event;
|
||||
event["eta"] = QVariant(QString::fromUtf8("∞"));
|
||||
if(h.is_paused()) {
|
||||
if(h.is_seed())
|
||||
event["state"] = QVariant("pausedUP");
|
||||
else
|
||||
event["state"] = QVariant("pausedDL");
|
||||
if(h.has_error()) {
|
||||
event["state"] = QVariant("error");
|
||||
} else {
|
||||
if(h.is_seed())
|
||||
event["state"] = QVariant("pausedUP");
|
||||
else
|
||||
event["state"] = QVariant("pausedDL");
|
||||
}
|
||||
} else {
|
||||
if(BTSession->isQueueingEnabled() && h.is_queued()) {
|
||||
if(h.is_seed())
|
||||
|
||||
Reference in New Issue
Block a user