Revision: 5846
          http://sourceforge.net/p/jump-pilot/code/5846
Author:   michaudm
Date:     2018-06-06 07:01:55 +0000 (Wed, 06 Jun 2018)
Log Message:
-----------
Remove LayerListener instanciated by InfoFrame

Modified Paths:
--------------
    core/trunk/src/com/vividsolutions/jump/workbench/ui/InfoFrame.java

Modified: core/trunk/src/com/vividsolutions/jump/workbench/ui/InfoFrame.java
===================================================================
--- core/trunk/src/com/vividsolutions/jump/workbench/ui/InfoFrame.java  
2018-06-06 05:40:55 UTC (rev 5845)
+++ core/trunk/src/com/vividsolutions/jump/workbench/ui/InfoFrame.java  
2018-06-06 07:01:55 UTC (rev 5846)
@@ -169,7 +169,7 @@
                              }
                    });
 
-                   LayerListener layerListener = new LayerListener() {
+                   final LayerListener layerListener = new LayerListener() {
             public void featuresChanged(FeatureEvent e) {}
 
             public void layerChanged(LayerEvent e) {
@@ -178,7 +178,6 @@
                     if (getModel().getLayers().contains(e.getLayerable())) {
                         getModel().remove((Layer)e.getLayerable());
                     }
-                    layerManager.removeLayerListener(this);
                 }
             }
 
@@ -196,6 +195,7 @@
           //Assume that there are no other views on the model
           model.dispose();
           savePositionAndSize();
+          getLayerManager().removeLayerListener(layerListener);
           
getLayerManager().removeLayerListener(attributeTab.attributeTabLayerListener);
         }
       });


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to