-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix non-responding widgets for multi indexing runs
The previous design pattern created a list of `QSignalBlocker` objects, and it relied on Python to perform reference counting and delete this list at the end of the function, so that the widgets would become unblocked. For some reason, if you run indexing multiple times, it appears that this list is sometimes not deleted at the end of the function. Instead of relying on Python to perform reference counting correctly, let's use a context manager so that we can be sure the widgets get unblocked. This fixes an issue where widgets were not emitting signals in the eta omega maps viewer when running the HEDM workflow multiple times. We should also go back and fix any other cases of the design pattern, since it appears to be error-prone. Signed-off-by: Patrick Avery <[email protected]>
- Loading branch information
Showing
1 changed file
with
40 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters