|
|
@ -289,7 +289,7 @@ public: |
|
|
|
// Save persistent data
|
|
|
|
// Save persistent data
|
|
|
|
QIniSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent-resume")); |
|
|
|
QIniSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent-resume")); |
|
|
|
QHash<QString, QVariant> all_data = settings.value("torrents").toHash(); |
|
|
|
QHash<QString, QVariant> all_data = settings.value("torrents").toHash(); |
|
|
|
QHash<QString, QVariant> data; |
|
|
|
QHash<QString, QVariant> data = all_data.value(h.hash()).toHash(); |
|
|
|
data["is_magnet"] = is_magnet; |
|
|
|
data["is_magnet"] = is_magnet; |
|
|
|
if(is_magnet) { |
|
|
|
if(is_magnet) { |
|
|
|
data["magnet_uri"] = misc::toQString(make_magnet_uri(h)); |
|
|
|
data["magnet_uri"] = misc::toQString(make_magnet_uri(h)); |
|
|
|