diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-04-25 23:37:33 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-04-25 21:38:41 +0000 |
commit | ac1d446c1356ec8e11d1bf14b5559c682079b70c (patch) | |
tree | 52967cb35cadcbbcb672c603ece23f8c9329dced /tests | |
parent | 2f55a4926347a6f6b445efca7dfed792e1bacc57 (diff) |
ExclusiveGroup: don't crash when passing null
Change-Id: I4d6f555faac81e56c32c6baf0a9ede14849a5855
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/controls/data/tst_exclusivegroup.qml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_exclusivegroup.qml b/tests/auto/controls/data/tst_exclusivegroup.qml index 5848eade..d8ae6103 100644 --- a/tests/auto/controls/data/tst_exclusivegroup.qml +++ b/tests/auto/controls/data/tst_exclusivegroup.qml @@ -77,6 +77,15 @@ TestCase { group.destroy() } + function test_null() { + var group = exclusiveGroup.createObject(testCase) + + group.addCheckable(null) + group.removeCheckable(null) + + group.destroy() + } + Component { id: checkable QtObject { property bool checked } |