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

ide: only allow one preferences window open at a time #3988

Merged
merged 1 commit into from
Aug 16, 2018
Merged

ide: only allow one preferences window open at a time #3988

merged 1 commit into from
Aug 16, 2018

Conversation

mossheim
Copy link
Contributor

Purpose and Motivation

Fixes #3975.

Types of changes

Added a function-static atomic to determine whether or not a settings
window is already open. Since I'm sure some of our stuff and the Qt
stuff is not noexcept, I added a try-catch to avoid the atomic becoming
stuck at true.

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • All tests are passing
  • If necessary, new tests were created to address changes in PR, and tests are passing
  • Updated documentation, if necessary
  • This PR is ready for review

Remaining Work

Copy link
Contributor

@nhthn nhthn left a comment

Choose a reason for hiding this comment

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

i can't actually repro the original behavior, but this looks fine to me.

@nhthn nhthn added this to the 3.10 milestone Aug 15, 2018
@htor
Copy link
Contributor

htor commented Aug 15, 2018

looks good, this pr fixes the issue on my mac.

@mossheim
Copy link
Contributor Author

Thanks for testing!

@mossheim mossheim merged commit d8b63d8 into supercollider:3.10 Aug 16, 2018
@mossheim mossheim deleted the issue/3975 branch August 16, 2018 02:36
@mossheim mossheim restored the issue/3975 branch April 10, 2020 18:51
@mossheim mossheim deleted the issue/3975 branch August 1, 2020 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants