Changeset 18938 in josm for trunk


Ignore:
Timestamp:
2024-01-15T22:03:41+01:00 (11 months ago)
Author:
taylor.smock
Message:

See #23415: Fix unit tests from r18937

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageViewerDialog.java

    r18937 r18938  
    151151                    map.removeToggleDialog(dialog);
    152152                }
    153                 dialog.destroy();
     153                if (!dialog.isDestroyed()) {
     154                    dialog.destroy();
     155                }
    154156            }
    155157        }
     
    424426        cancelLoadingImage();
    425427        super.destroy();
     428        // Ensure that this dialog is removed from memory
     429        destroyInstance();
     430    }
     431
     432    private boolean isDestroyed() {
     433        return dialogsPanel == null;
    426434    }
    427435
Note: See TracChangeset for help on using the changeset viewer.