Commit 486a7eb9 authored by Thomas Huster's avatar Thomas Huster

[17382] fixed deselection of block if selection is null

parent 384e960c
Pipeline #12447 passed with stages
in 4 minutes and 42 seconds
......@@ -101,7 +101,11 @@ public class BlockSelector extends CodeSelectorFactory {
selected = ((BlockTreeViewerItem) firstElement).getBlock();
}
tvfa.updateSelection((Identifiable) selected);
ContextServiceHolder.get().getRootContext().setTyped(selected);
if (selected != null) {
ContextServiceHolder.get().getRootContext().setTyped(selected);
} else {
ContextServiceHolder.get().getRootContext().removeTyped(ICodeElementBlock.class);
}
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment