Vavious Magnet link related fixes

This commit is contained in:
Christophe Dumez
2010-07-19 18:17:37 +00:00
parent bcdf4e42fa
commit 51068294f1
4 changed files with 36 additions and 21 deletions

View File

@@ -316,6 +316,7 @@ public:
static void saveSavePath(QString hash, QString save_path) {
Q_ASSERT(!hash.isEmpty());
qDebug("TorrentPersistentData::saveSavePath(%s)", qPrintable(save_path));
QIniSettings 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();