OpenInspectSessionsHandler : handler for opening the inspect session dialog
[taxeditor.git] / eu.etaxonomy.taxeditor.cdmlib / src / main / java / eu / etaxonomy / taxeditor / session / CdmEntitySessionManager.java
index 67ad8de81687ccf906ad1483f448b7b8c2b0d643..62f44f22a526898eb48d474711b2ea6cc7cf55c0 100644 (file)
@@ -133,6 +133,9 @@ public class CdmEntitySessionManager implements ICdmEntitySessionManager {
                        logger.info("No Session connected to owner, nothing to dispose");
                        return;
                }
+               if(session == activeSession) {
+                   activeSession = null;
+               }
                ownerSessionMap.remove(owner);
                notifyObservers();
        }