- Timestamp:
- 2020-06-10T22:37:22+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserDialogManager.java
r16553 r16592 93 93 } 94 94 95 private void show(long id, HistoryBrowserDialog dialog) {96 if (dialogs.containsValue(dialog)) {97 show(id);98 } else {99 placeOnScreen(dialog);100 dialog.setVisible(true);101 dialogs.put(id, dialog);102 }103 }104 105 private void show(long id) {106 if (dialogs.containsKey(id)) {107 dialogs.get(id).toFront();108 }109 }110 111 95 private boolean hasDialogWithCloseUpperLeftCorner(Point p) { 112 96 return dialogs.values().stream() … … 166 150 return; 167 151 if (existsDialog(h.getId())) { 168 show(h.getId());152 dialogs.get(h.getId()).toFront(); 169 153 } else { 170 show(h.getId(), new HistoryBrowserDialog(h)); 154 HistoryBrowserDialog dialog = new HistoryBrowserDialog(h); 155 placeOnScreen(dialog); 156 dialog.setVisible(true); 157 dialogs.put(h.getId(), dialog); 171 158 } 172 159 }
Note:
See TracChangeset
for help on using the changeset viewer.