Remove use of deprecated function
This commit is contained in:
parent
dd38a44ec0
commit
e4f35546d0
|
@ -108,7 +108,7 @@ void TargetPage::selectTargetDirectory()
|
|||
#else
|
||||
dlg->setModal(false);
|
||||
#endif
|
||||
dlg->setFileMode(QFileDialog::DirectoryOnly);
|
||||
dlg->setOption(QFileDialog::ShowDirsOnly, true);
|
||||
dlg->setWindowTitle(QApplication::translate("QtGui::GeneralTargetOptionPage", "Select download target directory"));
|
||||
dlg->setDirectory(ui()->defaultTargetLineEdit->text());
|
||||
QObject::connect(dlg, &QFileDialog::accepted, [this, dlg] {
|
||||
|
|
Loading…
Reference in New Issue