- Timestamp:
- 2010-08-11T21:28:34+12:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java
r22467 r22605 402 402 */ 403 403 public void closeCollection() { 404 if (collection == null) { 405 return; 406 } 404 407 DebugStream.println("Close collection: " + collection.getName()); 405 408 … … 1154 1157 public void loadCollection(String collection_file_path) 1155 1158 { 1159 if(new File(collection_file_path).isDirectory()) { // collect folder instead of previously-opened collection 1160 Gatherer.setMenuBarEnabled(true); 1161 return; // nothing else to be done, no collection to open 1162 } 1163 1156 1164 // Display a modal progress popup to indicate that the collection is being loaded 1157 1165 ModalProgressPopup load_collection_progress_popup = new ModalProgressPopup(Dictionary.get("CollectionManager.Loading_Collection"), Dictionary.get("CollectionManager.Loading_Collection_Please_Wait")); … … 1552 1560 // If there was an open collection last session, reopen it 1553 1561 if (Gatherer.open_collection_file_path != null) { 1554 1555 1562 // Load the collection now 1563 loadCollection(Gatherer.open_collection_file_path); 1556 1564 } 1557 1565
Note:
See TracChangeset
for help on using the changeset viewer.