1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-22 12:34:19 +00:00

- Fix torrent Labeling from torrent addition dialog

This commit is contained in:
Christophe Dumez 2009-12-18 16:36:48 +00:00
parent 04e008afa0
commit dc0ad73eca

View File

@ -930,11 +930,12 @@ QTorrentHandle Bittorrent::addTorrent(QString path, bool fromScanDir, QString fr
h.prioritize_files(TorrentTempData::getFilesPriority(hash));
h.set_sequential_download(TorrentTempData::isSequential(hash));
}
QString label = TorrentTempData::getLabel(hash);
// Save persistent data for new torrent
TorrentPersistentData::saveTorrentPersistentData(h);
// Save Label
if(TorrentTempData::hasTempData(hash)) {
TorrentPersistentData::saveLabel(hash, TorrentTempData::getLabel(hash));
if(!label.isEmpty()) {
TorrentPersistentData::saveLabel(hash, label);
}
// Save save_path
if(!defaultTempPath.isEmpty()) {