Browse Source

- Fix torrent Labeling from torrent addition dialog

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
dc0ad73eca
  1. 5
      src/bittorrent.cpp

5
src/bittorrent.cpp

@ -930,11 +930,12 @@ QTorrentHandle Bittorrent::addTorrent(QString path, bool fromScanDir, QString fr @@ -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()) {

Loading…
Cancel
Save