Commit b1de1b26 authored by Marco Descher's avatar Marco Descher
Browse files

[23194] RezepteView: Need an underlying widget to be able...

parent 23a0b314
Pipeline #22559 passed with stages
in 4 minutes and 36 seconds
......@@ -136,7 +136,9 @@ public class RezepteView extends ViewPart implements IRefreshable {
IPatient patient){
actPatient = patient;
Display.getDefault().asyncExec(() -> {
tv.setInput(Collections.emptyList());
if(CoreUiUtil.isActiveControl(tv.getControl())) {
tv.setInput(Collections.emptyList());
}
ContextServiceHolder.get().getRootContext().removeTyped(IRecipe.class);
if (patient != null) {
addLineAction.setEnabled(false);
......@@ -349,6 +351,7 @@ public class RezepteView extends ViewPart implements IRefreshable {
getSite().getPage().removePartListener(udpateOnVisible);
}
@Override
public void refresh(){
if (CoreUiUtil.isActiveControl(tv.getControl())) {
if(loader != null) {
......
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