Changeset 9590 in josm for trunk/src


Ignore:
Timestamp:
2016-01-23T19:13:07+01:00 (4 years ago)
Author:
Don-vip
Message:

fix #12394 - native file chooser was empty when setSelectedFile existed (patch by kolesar)

File:
1 edited

Legend:

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

    r9257 r9590  
    130130    @Override
    131131    public void setSelectedFile(File file) {
    132         fileDialog.setDirectory(file.getAbsolutePath());
     132        if (file == null) return;
     133        fileDialog.setDirectory(file.getParent());
    133134        fileDialog.setFile(file.getName());
    134135    }
Note: See TracChangeset for help on using the changeset viewer.