Ignore:
Timestamp:
2010-10-04T15:49:27+13:00 (14 years ago)
Author:
ak19
Message:

More changes to 2. Gatherer.java to allow empty string into config.xml for when the current collect dir is the default collect dir and 2. swapping between user names in applet (no longer loads open collections, because all collections are closed on exiting the applet).

File:
1 edited

Legend:

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

    r23016 r23031  
    507507        // in applets when other users on a machine want to use an applet and GLI wants to load
    508508        // a collection left open from a previous session and *requires* the old user to authenticate
    509         if(!Gatherer.isGsdlRemote) {
     509        if(Gatherer.isGsdlRemote) {
     510            Configuration.setString("general.open_collection"+Configuration.gliPropertyNameSuffix(),
     511                    true, "");         
     512        } else {
    510513            Configuration.setString("general.open_collection"+Configuration.gliPropertyNameSuffix(),
    511514                    true, CollectionManager.getLoadedCollectionColFilePath());
     
    515518    else {
    516519        // if there was no open collection, then write out the collect dir path for next time
    517         // IF this is not the default collect directory
    518         if(Gatherer.getCollectDirectoryPath().equals(
     520        // IF this is not the default collect directory and not a remote GLI/applet
     521        if(Gatherer.isGsdlRemote || Gatherer.getCollectDirectoryPath().equals(
    519522                Gatherer.getDefaultGSCollectDirectoryPath(true))) {
    520523            Configuration.setString("general.open_collection"+Configuration.gliPropertyNameSuffix(),
Note: See TracChangeset for help on using the changeset viewer.