Do not add a layout to a widget that has one already
Creating a layout with a parent adds the layout to the parent
widget, in this case the dialog got the two layouts added
that were meant for the inside widgets.
(cherry picked from commit f4d8fe2326998fe245065c8352e814ca24af9ad3)