Ticket #5757: RecentFiles.patch

File RecentFiles.patch, 717 bytes (added by anonymous, 14 years ago)

Prevent moving up files in the list which failed loading

  • src/org/openstreetmap/josm/actions/OpenFileAction.java

     
    249249                    importData(importer, files);
    250250
    251251                    if (recordHistory && !importer.isBatchImporter()) {
     252                        // only add those files which really have been opened successfully
     253                        files.retainAll(successfullyOpenedFiles);
    252254                        for (File f : files) {
    253255                            fileHistory.add(f.getPath());
    254256                        }