Xcos MVC: don't duplicate check 17/18817/2
Paul Bignier [Mon, 26 Dec 2016 09:54:23 +0000 (10:54 +0100)]
 * CID 1367932 & 1367933

Change-Id: Ida1acfe14556a24ff84afbde4a1beaa22ef7bbc4

scilab/modules/scicos/src/cpp/view_scilab/DiagramAdapter.cpp

index 9bd0712..9f9e23a 100644 (file)
@@ -336,7 +336,7 @@ struct objs
             else
             {
                 controller.referenceObject(update.adaptee->id());
-                if (deletion && (children[update.index] == ScicosID() && update.adaptee != nullptr))
+                if (deletion && children[update.index] == ScicosID())
                 {
                     // This object is the one being deleted in the diagram:
                     //  - we are in effective delete mode