Fixed Qt import window glitch

Fixes #371.