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