Skip to content

OHIF-113: added element verification before tool activation.#116

Merged
swederik merged 2 commits intoOHIF:masterfrom
andrebot:ohif-113/loading-tool-change
Oct 13, 2017
Merged

OHIF-113: added element verification before tool activation.#116
swederik merged 2 commits intoOHIF:masterfrom
andrebot:ohif-113/loading-tool-change

Conversation

@andrebot
Copy link
Copy Markdown
Collaborator

Issue

Switching tools while one of the viewports are loading throws an uncaught error. This is a bug in the toolManager, in which we need to add a better handler to this kind of situation.

Solution

Before doing any kind of activation through cornerstone I added a check for all elements we want to activate the tool. I added this snippet before all the logic because I wanted to avoid to do any kind of action if any of the elements was yet not enabled. This would prevent to execute any undo action and more complex logic to restore the last state.

@swederik swederik merged commit 0380395 into OHIF:master Oct 13, 2017
gustavo82mdq pushed a commit to gtajesgenga/Viewers that referenced this pull request Jan 18, 2018
* OHIF-113: added element verification before tool activation.

* OHIF-113: fixing typo
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