Changeset 12589 for trunk/gli/src


Ignore:
Timestamp:
2006-08-29T14:26:32+12:00 (18 years ago)
Author:
kjdon
Message:

need to call collection.destroy in closeCollection, otherwise old managers and listeners are still hanging around

Location:
trunk/gli/src/org/greenstone/gatherer/collection
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/collection/Collection.java

    r10345 r12589  
    119119    cdm.destroy();
    120120    Configuration.setCollectionConfiguration(null);
    121     if (Gatherer.g_man != null) {
    122         Gatherer.g_man.updateUI();
    123     }
     121    // this is called after calling collection.destroy, so we shouldn't need it here too.
     122//  if (Gatherer.g_man != null) {
     123//      Gatherer.g_man.updateUI();
     124//  }
    124125    cdm = null;
    125126    document = null;
  • trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java

    r12471 r12589  
    239239    ProfileXMLFileManager.clearProfileXMLFile();
    240240
     241    collection.destroy();
    241242    collection = null;
    242243    collection_tree_model = null;
    243     Configuration.setCollectionConfiguration(null);
     244    //Configuration.setCollectionConfiguration(null);
    244245    Gatherer.refresh(Gatherer.COLLECTION_CLOSED);
    245246    if (Gatherer.g_man != null) {
Note: See TracChangeset for help on using the changeset viewer.