From 018df56aa6804908bcdf5c4f380c1fe9366ce324 Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Fri, 9 Nov 2018 10:26:44 +0100 Subject: QQuickPage: fix a typo to avoid a crash when setting null to footer Fixes: QTBUG-71444 Change-Id: Id4b0a3fd7aa104357674b4e2be6206894f8878da Reviewed-by: J-P Nurmi Reviewed-by: Richard Moe Gustavsen --- tests/auto/controls/data/tst_dialog.qml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tests/auto') diff --git a/tests/auto/controls/data/tst_dialog.qml b/tests/auto/controls/data/tst_dialog.qml index 22546083..1bfffc1d 100644 --- a/tests/auto/controls/data/tst_dialog.qml +++ b/tests/auto/controls/data/tst_dialog.qml @@ -66,6 +66,14 @@ TestCase { Dialog { } } + Component { + id: qtbug71444 + Dialog { + header: null + footer: null + } + } + Component { id: buttonBox DialogButtonBox { } @@ -198,6 +206,11 @@ TestCase { compare(rejectedSpy.count, 1) } + function test_qtbug71444() { + var control = createTemporaryObject(qtbug71444, testCase) + verify(control) + } + function test_standardButtons() { var control = createTemporaryObject(dialog, testCase) -- cgit v1.2.3