mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 16:07:23 -06:00
FEATURE: Added error state for torrents (error is displayed in a tooltip)
This commit is contained in:
@@ -460,7 +460,12 @@ QString QTorrentHandle::root_path() const {
|
||||
|
||||
bool QTorrentHandle::has_error() const {
|
||||
Q_ASSERT(h.is_valid());
|
||||
return h.status().error.empty();
|
||||
return h.is_paused() && !h.status().error.empty();
|
||||
}
|
||||
|
||||
QString QTorrentHandle::error() const {
|
||||
Q_ASSERT(h.is_valid());
|
||||
return misc::toQString(h.status().error);
|
||||
}
|
||||
|
||||
void QTorrentHandle::downloading_pieces(bitfield &bf) const {
|
||||
|
||||
Reference in New Issue
Block a user