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

Make sure to only remove present ports

Fixup of commit a649d0e15.

parent 7f44fe35
...@@ -1510,7 +1510,8 @@ void UMLScene::deleteSelection() ...@@ -1510,7 +1510,8 @@ void UMLScene::deleteSelection()
} else if (widget->isPortWidget()) { } else if (widget->isPortWidget()) {
UMLObject *o = widget->umlObject(); UMLObject *o = widget->umlObject();
removeWidget(widget); removeWidget(widget);
UMLApp::app()->executeCommand(new CmdRemoveUMLObject(o)); if (o)
UMLApp::app()->executeCommand(new CmdRemoveUMLObject(o));
// message widgets are handled later // message widgets are handled later
} else if (!widget->isMessageWidget()){ } else if (!widget->isMessageWidget()){
removeWidget(widget); removeWidget(widget);
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