Ticket #13102: patch-test-reset-main-panel-listener.patch

File patch-test-reset-main-panel-listener.patch, 602 bytes (added by michael2402, 8 years ago)
  • test/unit/org/openstreetmap/josm/JOSMFixture.java

    diff --git a/test/unit/org/openstreetmap/josm/JOSMFixture.java b/test/unit/org/openstreetmap/josm/JOSMFixture.java
    index b8f3d28..5e31aa7 100644
    a b public class JOSMFixture {  
    141141        }
    142142        if (Main.main == null) {
    143143            new MainApplication().initialize();
     144        } else {
     145            Main.mainPanel.reAddListeners();
    144146        }
    145147        // Add a test layer to the layer manager to get the MapFrame
    146148        Main.getLayerManager().addLayer(new TestLayer());