Changeset 18238 in josm


Ignore:
Timestamp:
2021-09-30T23:59:11+02:00 (3 years ago)
Author:
Don-vip
Message:

fix #21344 - Allow directories of images or other files to be opened in JOSM (patch by taylor.smock)

File:
1 edited

Legend:

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

    r18208 r18238  
    2929import java.util.stream.Stream;
    3030
     31import javax.swing.JFileChooser;
    3132import javax.swing.JOptionPane;
    3233import javax.swing.SwingUtilities;
     
    7879    @Override
    7980    public void actionPerformed(ActionEvent e) {
    80         AbstractFileChooser fc = createAndOpenFileChooser(true, true, null);
     81        AbstractFileChooser fc = createAndOpenFileChooser(true, true, null, null, JFileChooser.FILES_AND_DIRECTORIES,
     82                true, null);
    8183        if (fc == null)
    8284            return;
Note: See TracChangeset for help on using the changeset viewer.