mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-27 01:02:48 +01:00
Merge pull request #6092 from ivan-boikov/cancel-dir-select
Fix cancelation of getExistingDirectory dialog
This commit is contained in:
commit
dde074eaab
1 changed files with 4 additions and 1 deletions
|
@ -103,7 +103,10 @@ void ConfigureFilesystem::SetDirectory(DirectoryTarget target, QLineEdit* edit)
|
||||||
str = QFileDialog::getOpenFileName(this, caption, QFileInfo(edit->text()).dir().path(),
|
str = QFileDialog::getOpenFileName(this, caption, QFileInfo(edit->text()).dir().path(),
|
||||||
QStringLiteral("NX Gamecard;*.xci"));
|
QStringLiteral("NX Gamecard;*.xci"));
|
||||||
} else {
|
} else {
|
||||||
str = QFileDialog::getExistingDirectory(this, caption, edit->text()) + QDir::separator();
|
str = QFileDialog::getExistingDirectory(this, caption, edit->text());
|
||||||
|
if (!str.isNull() && str.back() != QDir::separator()) {
|
||||||
|
str.append(QDir::separator());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (str.isEmpty())
|
if (str.isEmpty())
|
||||||
|
|
Loading…
Reference in a new issue