FEATURE: Added error state for torrents (error is displayed in a tooltip)

This commit is contained in:
Christophe Dumez
2010-05-24 14:19:25 +00:00
parent 8db8841c9c
commit 781d33b869
7 changed files with 31 additions and 9 deletions

View File

@@ -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 {