Set type to Dialog in flags if type is Dialog::Normal
When the Dialog has flags set in qml, the default Qt::Dialog flag got overriden. This ensures that, if the type of the dialog is Dialog::Normal, it has the Qt::Dialog flag.
Edited by Niccolò Venerandi