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

[FIX] WidgetManager: Schedule delayed deletion for managed OWWidgets #2963

Merged
merged 3 commits into from
Mar 30, 2018

Conversation

ales-erjavec
Copy link
Contributor

Issue

When the canvas editor creates a new workflow (via New or Open actions) the old OWWidgets are not deleted (promptly or even ever), like they are when explicitly deleted from the workflow.

Description of changes

Call deleteLater for managed widgets when the whole workflow is discarded.

Includes
  • Code changes
  • Tests
  • Documentation

... when the workflow is 'closed' (ie. discarded and replaced by the
canvas main editor)
@codecov-io
Copy link

codecov-io commented Mar 19, 2018

Codecov Report

Merging #2963 into master will decrease coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #2963      +/-   ##
==========================================
- Coverage   81.86%   81.85%   -0.01%     
==========================================
  Files         329      329              
  Lines       56785    56781       -4     
==========================================
- Hits        46486    46480       -6     
- Misses      10299    10301       +2

WidgetManager would fail to delete the widget if it was removed from the
workflow model while in 'processing' state.
Make the condition when delayed deletion is enacted match
the specification in the comments.
@astaric astaric added this to the 3.12 milestone Mar 30, 2018
@lanzagar lanzagar merged commit b1972e5 into biolab:master Mar 30, 2018
@ales-erjavec ales-erjavec deleted the fixes/widgetsscheme-force-delete branch April 10, 2018 09:00
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.

4 participants