Changeset 8802 in josm for trunk/src/org


Ignore:
Timestamp:
2015-09-29T18:32:29+02:00 (5 years ago)
Author:
simon04
Message:

fix #9113 - Session: save into recently used files

Location:
trunk/src/org/openstreetmap/josm/actions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/SaveActionBase.java

    r8510 r8802  
    3737        boolean saved = doSave();
    3838        if (saved) {
    39             addToFileOpenHistory();
     39            addToFileOpenHistory(file);
    4040        }
    4141    }
     
    199199    }
    200200
    201     protected void addToFileOpenHistory() {
    202         String filepath;
     201    static void addToFileOpenHistory(File file) {
     202        final String filepath;
    203203        try {
    204204            filepath = file.getCanonicalPath();
  • trunk/src/org/openstreetmap/josm/actions/SessionSaveAsAction.java

    r8801 r8802  
    136136        try {
    137137            sw.write(file);
     138            SaveActionBase.addToFileOpenHistory(file);
    138139        } catch (IOException ex) {
    139140            Main.error(ex);
Note: See TracChangeset for help on using the changeset viewer.