mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-12-29 06:36:41 +00:00
Fix cancelation of choose directory dialog
This commit is contained in:
parent
2e85ee250d
commit
afa4bcbb3b
|
@ -103,7 +103,10 @@ void ConfigureFilesystem::SetDirectory(DirectoryTarget target, QLineEdit* edit)
|
|||
str = QFileDialog::getOpenFileName(this, caption, QFileInfo(edit->text()).dir().path(),
|
||||
QStringLiteral("NX Gamecard;*.xci"));
|
||||
} 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())
|
||||
|
|
Loading…
Reference in a new issue