macOS: Add logging when applying new window state

Change-Id: Ibbd38b27b9251a0a4a9fd4224529e2131e167b89
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
Tor Arne Vestbø 2018-07-09 16:36:59 +02:00
parent b724a13c88
commit 5624e3c97d

View File

@ -617,6 +617,8 @@ void QCocoaWindow::applyWindowState(Qt::WindowStates requestedState)
if (newState == currentState)
return;
qCDebug(lcQpaWindow) << "Applying" << newState << "to" << window() << "in" << currentState;
const NSSize contentSize = m_view.frame.size;
if (contentSize.width <= 0 || contentSize.height <= 0) {
// If content view width or height is 0 then the window animations will crash so