|
|
|
@ -2472,12 +2472,12 @@ QString QBtSession::getSavePath(const QString &hash, bool fromScanDir, QString f
@@ -2472,12 +2472,12 @@ QString QBtSession::getSavePath(const QString &hash, bool fromScanDir, QString f
|
|
|
|
|
qDebug("SavePath got from persistant data is %s", qPrintable(savePath)); |
|
|
|
|
bool append_root_folder = false; |
|
|
|
|
if(savePath.isEmpty()) { |
|
|
|
|
if(fromScanDir && m_scanFolders->downloadInTorrentFolder(filePath)) |
|
|
|
|
if(fromScanDir && m_scanFolders->downloadInTorrentFolder(filePath)) { |
|
|
|
|
savePath = QFileInfo(filePath).dir().path(); |
|
|
|
|
else { |
|
|
|
|
} else { |
|
|
|
|
savePath = defaultSavePath; |
|
|
|
|
append_root_folder = true; |
|
|
|
|
} |
|
|
|
|
append_root_folder = true; |
|
|
|
|
} |
|
|
|
|
if(!fromScanDir && appendLabelToSavePath) { |
|
|
|
|
const QString label = TorrentPersistentData::getLabel(hash); |
|
|
|
|