mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
Correctly clear trackers error messages once they work
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
- BUGFIX: Fix possible crash when adding a torrent
|
- BUGFIX: Fix possible crash when adding a torrent
|
||||||
- BUGFIX: Fix torrent addition window layout (torrent content not expanding)
|
- BUGFIX: Fix torrent addition window layout (torrent content not expanding)
|
||||||
- BUGFIX: Fix about dialog in Web UI
|
- BUGFIX: Fix about dialog in Web UI
|
||||||
|
- BUGFIX: Correctly clear trackers error messages once they work
|
||||||
|
|
||||||
* Sun Apr 04 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.2.3
|
* Sun Apr 04 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.2.3
|
||||||
- BUGFIX: Fix possible crash when deleting a torrent just after pausing it
|
- BUGFIX: Fix possible crash when deleting a torrent just after pausing it
|
||||||
|
|||||||
@@ -263,29 +263,36 @@ public slots:
|
|||||||
#ifdef LIBTORRENT_0_15
|
#ifdef LIBTORRENT_0_15
|
||||||
if(it->verified) {
|
if(it->verified) {
|
||||||
item->setText(COL_STATUS, tr("Working"));
|
item->setText(COL_STATUS, tr("Working"));
|
||||||
|
item->setText(COL_MSG, "");
|
||||||
} else {
|
} else {
|
||||||
if(it->updating && it->fails == 0) {
|
if(it->updating && it->fails == 0) {
|
||||||
item->setText(COL_STATUS, tr("Updating..."));
|
item->setText(COL_STATUS, tr("Updating..."));
|
||||||
|
item->setText(COL_MSG, "");
|
||||||
} else {
|
} else {
|
||||||
if(it->fails > 0) {
|
if(it->fails > 0) {
|
||||||
item->setText(COL_STATUS, tr("Not working"));
|
item->setText(COL_STATUS, tr("Not working"));
|
||||||
|
item->setText(COL_MSG, error_message);
|
||||||
} else {
|
} else {
|
||||||
item->setText(COL_STATUS, tr("Not contacted yet"));
|
item->setText(COL_STATUS, tr("Not contacted yet"));
|
||||||
|
item->setText(COL_MSG, "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
if(data.verified) {
|
if(data.verified) {
|
||||||
item->setText(COL_STATUS, tr("Working"));
|
item->setText(COL_STATUS, tr("Working"));
|
||||||
|
item->setText(COL_MSG, "");
|
||||||
} else {
|
} else {
|
||||||
if(data.fail_count > 0)
|
if(data.fail_count > 0) {
|
||||||
item->setText(COL_STATUS, tr("Not working"));
|
item->setText(COL_STATUS, tr("Not working"));
|
||||||
else
|
item->setText(COL_MSG, error_message);
|
||||||
|
} else {
|
||||||
item->setText(COL_STATUS, tr("Not contacted yet"));
|
item->setText(COL_STATUS, tr("Not contacted yet"));
|
||||||
|
item->setText(COL_MSG, "");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
item->setText(COL_PEERS, QString::number(trackers_data.value(tracker_url, TrackerInfos(tracker_url)).num_peers));
|
item->setText(COL_PEERS, QString::number(trackers_data.value(tracker_url, TrackerInfos(tracker_url)).num_peers));
|
||||||
item->setText(COL_MSG, error_message);
|
|
||||||
}
|
}
|
||||||
// Remove old trackers
|
// Remove old trackers
|
||||||
foreach(const QString &tracker, old_trackers_urls) {
|
foreach(const QString &tracker, old_trackers_urls) {
|
||||||
|
|||||||
Reference in New Issue
Block a user