fix: Warning: QLayout: Attempting to add QLayout "" to DiagramDialog "", which already has a layout

* removed commented and ported code