|
|
@ -1774,14 +1774,16 @@ void QBtSession::addTorrentsFromScanFolder(QStringList &pathList) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void QBtSession::setDefaultSavePath(const QString &savepath) { |
|
|
|
void QBtSession::setDefaultSavePath(const QString &savepath) { |
|
|
|
if (defaultSavePath == savepath || savepath.isEmpty()) |
|
|
|
if (QDir(defaultSavePath) == QDir(savepath) || savepath.isEmpty()) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
defaultSavePath = QDir::fromNativeSeparators(savepath); |
|
|
|
defaultSavePath = QDir::fromNativeSeparators(savepath); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void QBtSession::setDefaultTempPath(const QString &temppath) { |
|
|
|
void QBtSession::setDefaultTempPath(const QString &temppath) { |
|
|
|
if (defaultTempPath == temppath) |
|
|
|
if (QDir(defaultTempPath) == QDir(temppath)) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
if (temppath.isEmpty()) { |
|
|
|
if (temppath.isEmpty()) { |
|
|
|
// Disabling temp dir
|
|
|
|
// Disabling temp dir
|
|
|
|
// Moving all torrents to their destination folder
|
|
|
|
// Moving all torrents to their destination folder
|
|
|
|