- Timestamp:
- 2016-04-29T11:03:45+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/downloadtasks/ChangesetHeaderDownloadTask.java
r10129 r10164 149 149 ids.add(cs.getId()); 150 150 } 151 if (parent == null) 152 return new ChangesetHeaderDownloadTask(ids); 153 else 154 return new ChangesetHeaderDownloadTask(parent, ids); 151 return new ChangesetHeaderDownloadTask(parent, ids); 155 152 } 156 153 } -
trunk/src/org/openstreetmap/josm/gui/util/GuiHelper.java
r10035 r10164 16 16 import java.awt.GraphicsEnvironment; 17 17 import java.awt.GridBagLayout; 18 import java.awt.HeadlessException; 18 19 import java.awt.Image; 19 20 import java.awt.Stroke; … … 522 523 */ 523 524 public static Frame getFrameForComponent(Component parentComponent) { 524 if (parentComponent == null && GraphicsEnvironment.isHeadless()) { 525 try { 526 return JOptionPane.getFrameForComponent(parentComponent); 527 } catch (HeadlessException e) { 528 if (Main.isDebugEnabled()) { 529 Main.debug(e.getMessage()); 530 } 525 531 return null; 526 532 } 527 return JOptionPane.getFrameForComponent(parentComponent);528 533 } 529 534 }
Note:
See TracChangeset
for help on using the changeset viewer.