Changeset 23016


Ignore:
Timestamp:
2010-10-02T22:25:53+13:00 (14 years ago)
Author:
ak19
Message:

For Remote GLI and applets, we no longer remember any opened collections as this causes problems in applets when other users on a machine want to use an applet and GLI wants to load a collection left open from a previous session and *requires* the old user to authenticate.

File:
1 edited

Legend:

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

    r23015 r23016  
    504504    // If we have a collection open remember it for next time, then save it and close it
    505505    if (Gatherer.c_man.ready()) {
    506         Configuration.setString("general.open_collection"+Configuration.gliPropertyNameSuffix(),
     506        // but we no longer remember open collections for remote GLI, as this causes problems
     507        // in applets when other users on a machine want to use an applet and GLI wants to load
     508        // a collection left open from a previous session and *requires* the old user to authenticate
     509        if(!Gatherer.isGsdlRemote) {
     510            Configuration.setString("general.open_collection"+Configuration.gliPropertyNameSuffix(),
    507511                    true, CollectionManager.getLoadedCollectionColFilePath());
     512        }
    508513        saveThenCloseCurrentCollection();
    509514    }
Note: See TracChangeset for help on using the changeset viewer.