Bugfix for Qt4.