- When incomplete torrents are saved to a different path, check if content is already present at final location

- Automacillay force a data recheck every time a torrent is moved (because libtorrent does not take care of checking if the torrent data exists at the destination location)
This commit is contained in:
Christophe Dumez
2010-01-04 21:16:33 +00:00
parent ae6acc4ca2
commit cac6f7428c
2 changed files with 32 additions and 9 deletions

View File

@@ -319,7 +319,7 @@ public:
QSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent-resume"));
QHash<QString, QVariant> all_data = settings.value("torrents", QHash<QString, QVariant>()).toHash();
QHash<QString, QVariant> data = all_data[hash].toHash();
return data["seed"].toBool();
return data.value("seed", false).toBool();
}
static bool isMagnet(QString hash) {