summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.riena.navigation.ui/src/org/eclipse/riena/navigation/ui/controllers/SubModuleController.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/org.eclipse.riena.navigation.ui/src/org/eclipse/riena/navigation/ui/controllers/SubModuleController.java b/org.eclipse.riena.navigation.ui/src/org/eclipse/riena/navigation/ui/controllers/SubModuleController.java
index 6bff3bf..8a433b0 100644
--- a/org.eclipse.riena.navigation.ui/src/org/eclipse/riena/navigation/ui/controllers/SubModuleController.java
+++ b/org.eclipse.riena.navigation.ui/src/org/eclipse/riena/navigation/ui/controllers/SubModuleController.java
@@ -88,6 +88,12 @@ public class SubModuleController extends NavigationNodeController<ISubModuleNode
*/
public void addDefaultAction(final IRidget focusRidget, final IActionRidget action) {
actionManager = getWindowRidget().addDefaultAction(focusRidget, action);
+
+ // activate() can only be called, if the shell is present
+ if (actionManager != null && getWindowRidget().getUIControl() != null) {
+ actionManager.deactivate();
+ actionManager.activate();
+ }
}
@Override