Changeset 9257 in josm


Ignore:
Timestamp:
2016-01-02T13:59:59+01:00 (9 years ago)
Author:
simon04
Message:

NativeFileChooser: fix setting previous directory

With file=/tmp on Linux, the file chooser showed the / directory and had tmp entered in the filename.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/widgets/NativeFileChooser.java

    r8540 r9257  
    3333        if (file != null) {
    3434            fileDialog.setDirectory(file.getAbsolutePath());
    35             fileDialog.setFile(file.toString());
     35            if (file.isFile()) {
     36                fileDialog.setFile(file.toString());
     37            }
    3638        }
    3739    }
Note: See TracChangeset for help on using the changeset viewer.