mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-21 08:09:35 +08:00
Fix cancel "Set location" causes files move to installation dir.
Closes #6568.
This commit is contained in:
parent
0d3c670728
commit
faaafce35b
@ -257,7 +257,7 @@ void TransferListWidget::setSelectedTorrentsLocation()
|
||||
|
||||
const QString newLocation = QFileDialog::getExistingDirectory(this, tr("Choose save path"), oldLocation,
|
||||
QFileDialog::DontConfirmOverwrite | QFileDialog::ShowDirsOnly | QFileDialog::HideNameFilterDetails);
|
||||
if (!QDir(newLocation).exists()) return;
|
||||
if (newLocation.isEmpty() || !QDir(newLocation).exists()) return;
|
||||
qDebug("New location is %s", qPrintable(newLocation));
|
||||
|
||||
// Actually move storage
|
||||
|
Loading…
Reference in New Issue
Block a user