Workaround occasional window show bug in Qt 5.0.2

This avoids the problem where the Window is displayed with a
frame but without content.

More details at https://bugs.launchpad.net/bugs/1179716