Changeset 13583


Ignore:
Timestamp:
2007-01-12T13:17:25+13:00 (15 years ago)
Author:
mdewsnip
Message:

Fixed a bug that caused an exception when deleting the currently loaded collection.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gui/GUIManager.java

    r13531 r13583  
    288288
    289289
     290    public void closeCurrentCollection()
     291    {
     292    tab_pane.setSelectedComponent(gather_pane);
     293    Gatherer.c_man.closeCollection();
     294    }
     295
     296
    290297    public void saveThenCloseCurrentCollection()
    291298    {
    292     tab_pane.setSelectedComponent(gather_pane);
    293299    Gatherer.c_man.saveCollection();
    294     Gatherer.c_man.closeCollection();
     300    closeCurrentCollection();
    295301    }
    296302
     
    770776        DeleteCollectionPrompt dc_prompt = new DeleteCollectionPrompt();
    771777        if (dc_prompt.display()) {
    772         saveThenCloseCurrentCollection();
     778        closeCurrentCollection();
    773779        }
    774780        dc_prompt.destroy();
Note: See TracChangeset for help on using the changeset viewer.