Revert "Don't warn on 0x0 sized windows."
This reverts commit 88272d6c04
,
which accidentally re-introduced a crash.
Change-Id: Ie60bcf55f940b24f982eed4f20c6af3320b040a7
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
This commit is contained in:
parent
8a00a42d0d
commit
353f7340a1
@ -863,7 +863,7 @@ void QCocoaWindow::syncWindowState(Qt::WindowState newState)
|
||||
// if content view width or height is 0 then the window animations will crash so
|
||||
// do nothing except set the new state
|
||||
NSRect contentRect = [contentView() frame];
|
||||
if (contentRect.size.width < 0 || contentRect.size.height < 0) {
|
||||
if (contentRect.size.width <= 0 || contentRect.size.height <= 0) {
|
||||
qWarning() << Q_FUNC_INFO << "invalid window content view size, check your window geometry";
|
||||
m_synchedWindowState = newState;
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user