Commit fd91b82b authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Make sure to only remove present ports

Fixup of commit a649d0e15.

CCBUG:403515
parent 7f44fe35
......@@ -1510,6 +1510,7 @@ void UMLScene::deleteSelection()
} else if (widget->isPortWidget()) {
UMLObject *o = widget->umlObject();
removeWidget(widget);
if (o)
UMLApp::app()->executeCommand(new CmdRemoveUMLObject(o));
// message widgets are handled later
} else if (!widget->isMessageWidget()){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment