Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace spaces with ? wildcard for #1605 #1904

Merged
merged 1 commit into from
Nov 5, 2023

Conversation

Liderate
Copy link
Contributor

Replaces spaces in the filter with ? wildcards. This works around the mentioned issue and allows us to see 'Stardew Valley.exe' when browsing.

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(" "), "?"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, could you add a comment here to explain why this was needed? To avoid confusion for future contributors.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I have added a comment. Let me know if it is clear enough, or needs changed.

@Holt59 Holt59 merged commit af5e042 into ModOrganizer2:master Nov 5, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants