diff --git a/com.top_logic/src/main/java/com/top_logic/tool/boundsec/commandhandlers/stacked/StackedGotoHandler.java b/com.top_logic/src/main/java/com/top_logic/tool/boundsec/commandhandlers/stacked/StackedGotoHandler.java index 6ba6ce8387..6201839627 100644 --- a/com.top_logic/src/main/java/com/top_logic/tool/boundsec/commandhandlers/stacked/StackedGotoHandler.java +++ b/com.top_logic/src/main/java/com/top_logic/tool/boundsec/commandhandlers/stacked/StackedGotoHandler.java @@ -26,7 +26,6 @@ import com.top_logic.mig.html.layout.DialogComponent; import com.top_logic.mig.html.layout.DialogSupport; import com.top_logic.mig.html.layout.LayoutComponent; -import com.top_logic.mig.html.layout.LayoutContainer; import com.top_logic.mig.html.layout.MainLayout; import com.top_logic.tool.boundsec.commandhandlers.GotoHandler; import com.top_logic.util.TLContext; @@ -85,10 +84,10 @@ public boolean isStackedComponent(LayoutComponent aComponent) { @Override public LayoutComponent gotoLayout(LayoutComponent contextComponent, Object targetObject, ComponentName targetComponentName) { - if (contextComponent instanceof LayoutContainer) { - /* No useful goto back to a LayoutContainer possible. Therefore no recording. Such can - * e.g. occur by executing a "stable bookmark". In such case the context component is - * the MainLayout. */ + if (contextComponent instanceof MainLayout) { + /* No useful goto back to the MainLayout possible. Therefore no recording. Such can e.g. + * occur by executing a "stable bookmark". In such case the context component is the + * MainLayout. */ clearStack(contextComponent); return super.gotoLayout(contextComponent, targetObject, targetComponentName); }