Changeset 6833


Ignore:
Timestamp:
2004-02-18T16:25:41+13:00 (20 years ago)
Author:
kjdon
Message:

fixed a bug where the mode wasn't being updated on the title bar if no collection was open

File:
1 edited

Legend:

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

    r6825 r6833  
    4040import org.greenstone.gatherer.checklist.CheckList;
    4141import org.greenstone.gatherer.checklist.Entry;
     42import org.greenstone.gatherer.collection.Collection;
    4243import org.greenstone.gatherer.gui.EmailField;
    4344import org.greenstone.gatherer.gui.GLIButton;
     
    671672        if(new_mode != current_mode) {
    672673        Gatherer.config.setMode(new_mode);
    673         Gatherer.c_man.getCollection().cdm.modeChanged(new_mode);
     674        Collection collection = Gatherer.c_man.getCollection();
     675        if (collection != null) {
     676            collection.cdm.modeChanged(new_mode);
     677        }
    674678        Gatherer.g_man.modeChanged(new_mode);
    675679        }
Note: See TracChangeset for help on using the changeset viewer.