This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 109098
Collapse All | Expand All

(-)Central.java (+6 lines)
Lines 891-898 Link Here
891
        }
891
        }
892
        model.removeModeTopComponent(mode, tc, recentTc);
892
        model.removeModeTopComponent(mode, tc, recentTc);
893
        String id = WindowManagerImpl.getInstance().findTopComponentID(tc);
893
        String id = WindowManagerImpl.getInstance().findTopComponentID(tc);
894
        /** BugId #109098 
895
         * make sure you call this only on TCs that are NOT TC.PERSISTENT_ALWAYS
896
         */
897
        if(!(tc.getPersistenceType()==TopComponent.PERSISTENCE_ALWAYS)){
894
        PersistenceManager.getDefault().removeGlobalTopComponentID(id);
898
        PersistenceManager.getDefault().removeGlobalTopComponentID(id);
899
        }
895
900
901
896
        ModeImpl oldActive = getActiveMode();
902
        ModeImpl oldActive = getActiveMode();
897
        ModeImpl newActive;
903
        ModeImpl newActive;
898
        if(model.getModeOpenedTopComponents(mode).isEmpty() && mode == oldActive) {
904
        if(model.getModeOpenedTopComponents(mode).isEmpty() && mode == oldActive) {

Return to bug 109098