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

Qt: Fix stock input profiles being deletable #9450

Merged
merged 1 commit into from Jan 27, 2021

Conversation

Filoppi
Copy link
Contributor

@Filoppi Filoppi commented Jan 17, 2021

Also avoid files without a name before the extension (name: ".ini") from being added to the list because then they wouldn't be saveable and it would appear with an empty name anyway.

On Windows GetSysDirectory() was returning a path with // while being checked against one that had been converted to \, so the check would fail and you'd be able to delete system profiles.

@Filoppi Filoppi changed the title Qt: Fix stock input being deletable Qt: Fix stock input profiles being deletable Jan 17, 2021
Also avoid files without a name before the extension (name: ".ini")
from being added to the list because then they wouldn't be saveable
and it would appear with an empty name anyway.
@Techjar
Copy link
Contributor

Techjar commented Jan 17, 2021

I am disappointed that none of our Windows developers noticed this. Also I hate that Windows uses backslash. Thanks for catching this.

@leoetlino leoetlino merged commit 42b55e8 into dolphin-emu:master Jan 27, 2021
10 checks passed
@Filoppi
Copy link
Contributor Author

Filoppi commented Jan 27, 2021

I am disappointed that none of our Windows developers noticed this. Also I hate that Windows uses backslash. Thanks for catching this.

I wonder if GetSysDirectory() should directly return a path with \ so it doesn't need to get patched every time? But I didn't want to make that larger change of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants