mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
FEATURE: Added error state for torrents (error is displayed in a tooltip)
This commit is contained in:
parent
8db8841c9c
commit
781d33b869
7 changed files with 31 additions and 9 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue