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

Don't use VSTGUI::CNewFileSelector::setDefaultExtension #691

Merged

Conversation

redtide
Copy link
Member

@redtide redtide commented Mar 10, 2021

This fixes a wrong file extension filter in the file dialog under Windows.
It seems that the last added extension is selected as default one due to some wrong selection index. So use the All Files filter as workaround.


// also add extensions of importable files
fs->addFileExtension(CFileExtension("SFZ", "sfz"));
Copy link
Collaborator

Choose a reason for hiding this comment

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

SFZ is not among "importable files" as indicated in the comment.
Can you move it back up a few lines?

This fixes a wrong file extension filter in the file dialog under Windows.
It seems that the last added extension is selected as default one due to some wrong selection index. So use the All Files filter as workaround.
@redtide redtide force-pushed the windows-fileselector-default-filter branch from b9325ed to 982116a Compare March 10, 2021 11:29
@jpcima jpcima merged commit 1e3b858 into sfztools:develop Mar 10, 2021
@redtide redtide deleted the windows-fileselector-default-filter branch March 22, 2021 08:01
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.

2 participants