Fixed a bug in Am2900; created dlatch8/80; relayouted some components
[Mograsim.git] / net.mograsim.logic.model.editor / src / net / mograsim / logic / model / editor / handles / WireHandle.java
index 61fd0a6..839c2b5 100644 (file)
@@ -71,7 +71,9 @@ public class WireHandle extends Handle
        @Override
        public void reqDelete()
        {
-               model.destroyWire(parent);
+               // this wire could already be removed implicitly when removing a selection containing both wires and components
+               if (model.getWireByName(parent.name) != null)
+                       model.destroyWire(parent);
        }
 
        @Override