mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
Add setting to copy .torrent files for finished downloads (closes issue #22)
Patch edited by Christophe Dumez.
This commit is contained in:
@@ -63,7 +63,7 @@ QString prefjson::getPreferences()
|
||||
}
|
||||
data.add("download_in_scan_dirs", var_list);
|
||||
data.add("export_dir_enabled", pref.isTorrentExportEnabled());
|
||||
data.add("export_dir", pref.getExportDir());
|
||||
data.add("export_dir", pref.getTorrentExportDir());
|
||||
data.add("mail_notification_enabled", pref.isMailNotificationEnabled());
|
||||
data.add("mail_notification_email", pref.getMailNotificationEmail());
|
||||
data.add("mail_notification_smtp", pref.getMailNotificationSMTP());
|
||||
@@ -198,7 +198,7 @@ void prefjson::setPreferences(const QString& json)
|
||||
}
|
||||
}
|
||||
if (m.contains("export_dir"))
|
||||
pref.setExportDir(m["export_dir"].toString());
|
||||
pref.setTorrentExportDir(m["export_dir"].toString());
|
||||
if (m.contains("mail_notification_enabled"))
|
||||
pref.setMailNotificationEnabled(m["mail_notification_enabled"].toBool());
|
||||
if (m.contains("mail_notification_email"))
|
||||
|
||||
Reference in New Issue
Block a user