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

Notify callback or delegate when VistaFileSelector is canceled #285

Merged

Conversation

nickdowell
Copy link
Contributor

Unlike the macOS implementation, CNewFileSelector on Windows does not invoke the CallbackFunc or emit the kSelectEndMessage notification if the user cancels the file selector.

This seems to be a bug based on the existence of a commit that fixed it in an earlier version of the implementation.

This pull requests ensures that the doneCallback is executed on all code paths, so that clients of CNewFileSelector can reliably perform any necessary clean-up.

@scheffle scheffle changed the base branch from master to develop March 1, 2023 10:18
@scheffle scheffle changed the base branch from develop to master March 1, 2023 10:19
@scheffle scheffle merged commit 340f9cb into steinbergmedia:master Mar 1, 2023
@nickdowell nickdowell deleted the fix-file-selector-cancel-callback branch March 1, 2023 10:27
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.

None yet

2 participants