Index: applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/TurnRestrictionEditor.java
===================================================================
--- applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/TurnRestrictionEditor.java	(revision 31562)
+++ applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/TurnRestrictionEditor.java	(revision 32329)
@@ -819,5 +819,5 @@
         public void actionPerformed(ActionEvent e) {
             if (Main.main.getActiveLayer() != getLayer()){
-                Main.map.mapView.setActiveLayer(getLayer());
+                Main.getLayerManager().setActiveLayer(getLayer());
             }
             Relation tr = getTurnRestriction();
