Changeset 5903


Ignore:
Timestamp:
2003-11-19T16:04:45+13:00 (20 years ago)
Author:
jmt12
Message:

Removing a partition which just happens to be the default one also now clears the default value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/SubcollectionIndexManager.java

    r5785 r5903  
    142142        if(default_index != null && default_index.equals(subindex)) {
    143143        default_index.setAssigned(false);
     144        ((SubcollectionIndexControl)controls).clearDefaultIndex();
    144145        }
    145146        // Remove the index
     
    319320        add(subindexes_pane, BorderLayout.CENTER);
    320321        add(subcollection_panel, BorderLayout.SOUTH);
     322    }
     323
     324    public void clearDefaultIndex() {
     325        clear_default_button.doClick();
    321326    }
    322327
Note: See TracChangeset for help on using the changeset viewer.