Safer error detection

This commit is contained in:
Christophe Dumez
2010-08-21 20:22:59 +00:00
parent 8e1e51d268
commit d2b41d70c8
3 changed files with 12 additions and 3 deletions

View File

@@ -387,6 +387,14 @@ QStringList QTorrentHandle::files_path() const {
return res;
}
bool QTorrentHandle::has_missing_files() const {
const QStringList paths = files_path();
foreach(const QString &path, paths) {
if(!QFile::exists(path)) return true;
}
return false;
}
int QTorrentHandle::queue_position() const {
Q_ASSERT(h.is_valid());
if(h.queue_position() < 0)