Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace spaces with ? wildcard for #1605
Browse files Browse the repository at this point in the history
Liderate committed Oct 14, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent cd4ba84 commit daf616a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/settingsdialogpaths.cpp
Original file line number Diff line number Diff line change
@@ -200,8 +200,8 @@ void PathsSettingsTab::on_browseGameDirBtn_clicked()
QFileInfo oldGameExe(ui->managedGameDirEdit->text());

QString temp =
QFileDialog::getOpenFileName(&dialog(), QObject::tr("Select game executable"),
oldGameExe.absolutePath(), oldGameExe.fileName());
QFileDialog::getOpenFileName(&dialog(), QObject::tr("Select game executable"), oldGameExe.absolutePath(),
oldGameExe.fileName().replace(QRegularExpression(" "), "?"));

if (temp.isEmpty()) {
return;

0 comments on commit daf616a

Please sign in to comment.