Index: applications/editors/josm/plugins/reltoolbox/src/relcontext/ChosenRelation.java
===================================================================
--- applications/editors/josm/plugins/reltoolbox/src/relcontext/ChosenRelation.java	(revision 34086)
+++ applications/editors/josm/plugins/reltoolbox/src/relcontext/ChosenRelation.java	(revision 34087)
@@ -126,5 +126,5 @@
         OsmDataLayer newLayer = MainApplication.getLayerManager().getEditLayer();
         clear();
-        if (newLayer != null && e.getPreviousEditLayer() == null) {
+        if (newLayer != null && e.getPreviousDataLayer() == null) {
             MainApplication.getMap().mapView.addTemporaryLayer(this);
         } else if (newLayer == null) {
