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;
|
| 29 | 29 | import javax.swing.AbstractAction; |
| 30 | 30 | import javax.swing.BorderFactory; |
| 31 | 31 | import javax.swing.JButton; |
| | 32 | import javax.swing.JFrame; |
| 32 | 33 | import javax.swing.JOptionPane; |
| 33 | 34 | import javax.swing.JPanel; |
| 34 | 35 | import javax.swing.JSplitPane; |
| 35 | 36 | import javax.swing.JTabbedPane; |
| | 37 | import javax.swing.SwingUtilities; |
| 36 | 38 | import javax.swing.border.TitledBorder; |
| 37 | 39 | |
| 38 | 40 | import org.openstreetmap.josm.data.APIDataSet; |
| … |
… |
public class UploadDialog extends AbstractUploadDialog implements PropertyChange
|
| 354 | 356 | new Dimension(800, 600) |
| 355 | 357 | ) |
| 356 | 358 | ).applySafe(this); |
| | 359 | |
| | 360 | JFrame frame = (JFrame) SwingUtilities.getAncestorOfClass(JFrame.class, this); |
| | 361 | frame.revalidate(); |
| | 362 | frame.repaint(); |
| | 363 | |
| 357 | 364 | startUserInput(); |
| 358 | 365 | } else if (isShowing()) { // Avoid IllegalComponentStateException like in #8775 |
| 359 | 366 | new WindowGeometry(this).remember(getClass().getName() + ".geometry"); |