|
|
|
@ -1773,7 +1773,13 @@ void QBtSession::addTorrentsFromScanFolder(QStringList &pathList) {
@@ -1773,7 +1773,13 @@ void QBtSession::addTorrentsFromScanFolder(QStringList &pathList) {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void QBtSession::setDefaultTempPath(QString temppath) { |
|
|
|
|
void QBtSession::setDefaultSavePath(const QString &savepath) { |
|
|
|
|
if (defaultSavePath == savepath || savepath.isEmpty()) |
|
|
|
|
return; |
|
|
|
|
defaultSavePath = QDir::fromNativeSeparators(savepath); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void QBtSession::setDefaultTempPath(const QString &temppath) { |
|
|
|
|
if (defaultTempPath == temppath) |
|
|
|
|
return; |
|
|
|
|
if (temppath.isEmpty()) { |
|
|
|
@ -1799,13 +1805,13 @@ void QBtSession::setDefaultTempPath(QString temppath) {
@@ -1799,13 +1805,13 @@ void QBtSession::setDefaultTempPath(QString temppath) {
|
|
|
|
|
QTorrentHandle h = QTorrentHandle(*torrentIT); |
|
|
|
|
if (!h.is_valid()) continue; |
|
|
|
|
if (!h.is_seed()) { |
|
|
|
|
QString torrent_tmp_path = temppath.replace("\\", "/"); |
|
|
|
|
qDebug("Moving torrent to its temp save path: %s", qPrintable(torrent_tmp_path)); |
|
|
|
|
QString torrent_tmp_path = QDir::fromNativeSeparators(temppath); |
|
|
|
|
qDebug("Moving torrent to its temp save path: %s", qPrintable(fsutils::toDisplayPath(torrent_tmp_path))); |
|
|
|
|
h.move_storage(torrent_tmp_path); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
defaultTempPath = temppath; |
|
|
|
|
defaultTempPath = QDir::fromNativeSeparators(temppath); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void QBtSession::appendqBextensionToTorrent(const QTorrentHandle &h, bool append) { |
|
|
|
|