Browse Source

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

Closes #6568.
adaptive-webui-19844
Chocobo1 8 years ago
parent
commit
faaafce35b
  1. 2
      src/gui/transferlistwidget.cpp

2
src/gui/transferlistwidget.cpp

@ -257,7 +257,7 @@ void TransferListWidget::setSelectedTorrentsLocation() @@ -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…
Cancel
Save