Bugfix for non mainwindow/dialog designer forms