Ignore:
Timestamp:
2009-05-13T14:45:08+12:00 (15 years ago)
Author:
kjdon
Message:

If you change the language then the locale is set in the configuration, then when you come to save the collection config file, the worng locale is used, and you get the wrong language in the file for metadata anmes. So now we save the collection before setting the locale, but also need to call a new exit method in GUIManager so it doesn't overwrite our general.open_collection setting

File:
1 edited

Legend:

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

    r19306 r19438  
    477477    }
    478478   
     479  // some cases we have already saved the collection, but don't want to
     480  // override the general.open_collection value here
     481  public void exitNoCollectionSave(int exit_status) {
     482    // Store the current position and size of the GLI for next time
     483    Configuration.setBounds("general.bounds", true, getBounds());
     484
     485    // Save configuration
     486    Configuration.save();
     487
     488    // Hide the main window
     489    setVisible(false);
     490
     491    // If we're running as an applet we don't quit here (we quit when the browser calls GathererApplet.destroy())
     492    if (!Gatherer.isApplet) {
     493        Gatherer.exit(exit_status);
     494    }
     495
     496  }
    479497    /** This method ensures that all the things needing saving are saved before Gatherer.exit() is called.
    480498     */
Note: See TracChangeset for help on using the changeset viewer.