QT GUI: possible fix for issue 1305