issue #21975 do not resize window if no valid size
Merge remote-tracking branch 'QTCLIENT/master' into 21975-2
turn off debug
Merge pull request #231 from gpazo/21975-2

21975 2