summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@digia.com>2013-04-15 09:30:38 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-15 10:34:53 +0200
commit88272d6c04f0f67fa9612dc7bdb2a5f8ba8d0314 (patch)
tree92fbe6f17244a198d0b174c751750e46cd6470e9 /src/plugins
parente5e0ec42bbae0816b1bb6c93bf1b7d14b077c64d (diff)
Don't warn on 0x0 sized windows.
I don't think this is an user error. If it is then the warning should be in a cross-platform code path. Change-Id: I4c615d9b2372660bb03b17ccb25204b2a8d17b1a Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/platforms/cocoa/qcocoawindow.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoawindow.mm b/src/plugins/platforms/cocoa/qcocoawindow.mm
index c093881e16..161e2225a4 100644
--- a/src/plugins/platforms/cocoa/qcocoawindow.mm
+++ b/src/plugins/platforms/cocoa/qcocoawindow.mm
@@ -852,7 +852,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;