Changeset 25789


Ignore:
Timestamp:
2012-06-14T15:17:57+12:00 (12 years ago)
Author:
ak19
Message:

Fixed the weird behaviour of the New Collection dialog on Ubuntu when you try to base it on a previous collection. On the other Linux, it always listed all the available collections to base it on, but on Ubuntu only the Other Collections option was there.

File:
1 edited

Legend:

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

    r23238 r25789  
    343343        File sites_dir = new File(Gatherer.getSitesDirectoryPath());
    344344        File [] sites = sites_dir.listFiles();
    345         for (int i=0; i<sites.length; i++) {       
     345        for (int i=0; i<sites.length; i++) {
    346346        if(collect_directory == null) {
    347347            collect_directory = new File(sites_dir + File.separator + sites[i].getName() + File.separator + "collect");
     
    350350            addCollectionsToModel(base_collection_model, collect_directory, sites[i].getName());
    351351        }
     352        collect_directory = null;
    352353        }
    353354    } else {
Note: See TracChangeset for help on using the changeset viewer.