Make sure the main window is visible…

… before displaying the subscription sheet.
Fix issue #366