Index: /applications/editors/josm/plugins/public_transport/src/public_transport/StopImporterAction.java
===================================================================
--- /applications/editors/josm/plugins/public_transport/src/public_transport/StopImporterAction.java	(revision 20748)
+++ /applications/editors/josm/plugins/public_transport/src/public_transport/StopImporterAction.java	(revision 20749)
@@ -862,5 +862,5 @@
     else if ("stopImporter.waypointsDetach".equals(event.getActionCommand()))
     {
-      if (dialog.getWaypointsTable().getSelectedRowCount() > 0)
+/*      if (dialog.getWaypointsTable().getSelectedRowCount() > 0)
       {
 	for (int i = 0; i < waypointTM.getRowCount(); ++i)
@@ -880,5 +880,6 @@
 	    waypointTM.nodes.set(i, null);
 	}
-      }
+      }*/
+      Main.main.undoRedo.add(new WaypointsDetachCommand(this));
       dialog.getWaypointsTable().clearSelection();
     }
