diff options
author | Shawn Rutledge <shawn.rutledge@digia.com> | 2014-10-10 11:35:12 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@digia.com> | 2014-10-10 15:47:49 +0200 |
commit | 44f29559ecc3c5f749ca5fe632752010265e892a (patch) | |
tree | e355892a37156a0338b355fe1a628f02663e425c | |
parent | 3b4b4dea463f1381b3fe833a4565f80eb1d5b37e (diff) | |
download | qtquickcontrols-44f29559ecc3c5f749ca5fe632752010265e892a.tar.gz |
Dialogs: fix warning in DefaultWindowDecoration
content can be null
Change-Id: I69e63fa9f9652103dab7b295c06d56c18ee78933
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
-rw-r--r-- | src/dialogs/qml/DefaultWindowDecoration.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dialogs/qml/DefaultWindowDecoration.qml b/src/dialogs/qml/DefaultWindowDecoration.qml index 9b006698..15512669 100644 --- a/src/dialogs/qml/DefaultWindowDecoration.qml +++ b/src/dialogs/qml/DefaultWindowDecoration.qml @@ -58,8 +58,8 @@ Rectangle { width: content ? content.width + 15 : 0 height: content ? content.height + 15 : 0 - onWidthChanged: content.x = 5 - onHeightChanged: content.y = 5 + onWidthChanged: if (content) content.x = 5 + onHeightChanged: if (content) content.y = 5 border { left: 10; top: 10; right: 10; bottom: 10 } clip: true source: "../images/window_border.png" |