Fix Main Window briefly display on first start.

Closes Bug #2954. On first start, before displaying the Wizard,
the Main Window briefly showed up.
Merge remote-tracking branch 'ivan/bug/2954_fix-mainwindow-show' into develop