Fix cancel "Set location" causes files move to installation dir.

Closes #6568.
This commit is contained in:
Chocobo1 2017-03-30 10:14:33 +08:00
parent 0d3c670728
commit faaafce35b

View File

@ -257,7 +257,7 @@ void TransferListWidget::setSelectedTorrentsLocation()
const QString newLocation = QFileDialog::getExistingDirectory(this, tr("Choose save path"), oldLocation, const QString newLocation = QFileDialog::getExistingDirectory(this, tr("Choose save path"), oldLocation,
QFileDialog::DontConfirmOverwrite | QFileDialog::ShowDirsOnly | QFileDialog::HideNameFilterDetails); 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)); qDebug("New location is %s", qPrintable(newLocation));
// Actually move storage // Actually move storage