Browse Source

Do not create the torrent root folder at the destination if the torrent is in temp dir

adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
b7ec18e4f1
  1. 2
      src/torrentpersistentdata.h

2
src/torrentpersistentdata.h

@ -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));

Loading…
Cancel
Save