Ticket #21387: 21387.patch

File 21387.patch, 1.3 KB (added by taylor.smock, 5 years ago)

Functionally the same as attachment:19319.patch:ticket:19319 (unknown providence)

  • src/org/openstreetmap/josm/gui/io/UploadDialog.java

    diff --git a/src/org/openstreetmap/josm/gui/io/UploadDialog.java b/src/org/openstreetmap/josm/gui/io/UploadDialog.java
    index 684f6906b8..5719562f73 100644
    a b import java.util.stream.Collectors;  
    2929import javax.swing.AbstractAction;
    3030import javax.swing.BorderFactory;
    3131import javax.swing.JButton;
     32import javax.swing.JFrame;
    3233import javax.swing.JOptionPane;
    3334import javax.swing.JPanel;
    3435import javax.swing.JSplitPane;
    3536import javax.swing.JTabbedPane;
     37import javax.swing.SwingUtilities;
    3638import javax.swing.border.TitledBorder;
    3739
    3840import org.openstreetmap.josm.data.APIDataSet;
    public class UploadDialog extends AbstractUploadDialog implements PropertyChange  
    354356                            new Dimension(800, 600)
    355357                    )
    356358            ).applySafe(this);
     359
     360            JFrame frame = (JFrame) SwingUtilities.getAncestorOfClass(JFrame.class, this);
     361            frame.revalidate();
     362            frame.repaint();
     363
    357364            startUserInput();
    358365        } else if (isShowing()) { // Avoid IllegalComponentStateException like in #8775
    359366            new WindowGeometry(this).remember(getClass().getName() + ".geometry");