BUGFIX: Clear torrent error state when resuming it

This commit is contained in:
Christophe Dumez
2010-01-31 19:07:17 +00:00
parent 508a811a8a
commit e8db20a558
3 changed files with 8 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
- BUGFIX: Fix compilation error when geoip database is embedded
- BUGFIX: Fix crash when double-clicking on a torrent that has no metadata to open its save path
- BUGFIX: Fix Scan directory preferences in Web UI
- BUGFIX: Clear torrent error state when resuming it
* Sun Jan 24 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.1.2
- FEATURE: Added back file prioritizing in a torrent

View File

@@ -441,6 +441,11 @@ QString QTorrentHandle::root_path() const {
return save_path();
}
bool QTorrentHandle::has_error() const {
Q_ASSERT(h.is_valid());
return h.status().error.empty();
}
//
// Setters
//
@@ -464,6 +469,7 @@ void QTorrentHandle::pause() {
void QTorrentHandle::resume() {
Q_ASSERT(h.is_valid());
if(has_error()) h.clear_error();
h.auto_managed(true);
h.resume();
}

View File

@@ -127,6 +127,7 @@ class QTorrentHandle {
bool priv() const;
bool first_last_piece_first() const;
QString root_path() const;
bool has_error() const;
//
// Setters