diff --git a/src/settingsdialogpaths.cpp b/src/settingsdialogpaths.cpp index 1907b7fae..b6c8c2309 100644 --- a/src/settingsdialogpaths.cpp +++ b/src/settingsdialogpaths.cpp @@ -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;