result = myWorkshop->module()->createWidgetByType(theType, theParent, myWidgetApi, myParentId);
#ifdef _DEBUG
if (!result) {
- qDebug("ModuleBase_WidgetFactory::fillWidget: find bad widget type");
+ qDebug("ModuleBase_WidgetFactory::fillWidget: find bad widget type %s", theType.c_str());
}
#endif
}
if (!isActiveOperationAborted())
return;
QObjectPtrList anObjects = mySelector->selection()->selectedObjects();
+ // It is necessary to clear selection in order to avoid selection changed event during
+ // deleteion and negative consequences connected with processing of already deleted items
+ mySelector->clearSelection();
// check whether the object can be deleted. There should not be parts which are not loaded
if (!XGUI_Tools::canRemoveOrRename(myMainWindow, anObjects))
return;