Use an appropriate method to show modal dialog

PR #16809.
This commit is contained in:
Vladimir Golovnev
2022-04-06 08:39:34 +03:00
committed by GitHub
parent 78344a10fa
commit 169c4991d5
2 changed files with 2 additions and 4 deletions

View File

@@ -342,7 +342,6 @@ void TransferListWidget::setSelectedTorrentsLocation()
auto fileDialog = new QFileDialog(this, tr("Choose save path"), oldLocation);
fileDialog->setAttribute(Qt::WA_DeleteOnClose);
fileDialog->setFileMode(QFileDialog::Directory);
fileDialog->setModal(true);
fileDialog->setOptions(QFileDialog::DontConfirmOverwrite | QFileDialog::ShowDirsOnly | QFileDialog::HideNameFilterDetails);
connect(fileDialog, &QDialog::accepted, this, [this, fileDialog]()
{
@@ -362,7 +361,7 @@ void TransferListWidget::setSelectedTorrentsLocation()
}
});
fileDialog->show();
fileDialog->open();
}
void TransferListWidget::pauseAllTorrents()