Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
11b2c632
Commit
11b2c632
authored
May 26, 2015
by
Don Gagne
Browse files
Delete widgets
Otherwise they end up referencing deleted Facts on link disconnect
parent
09420502
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/FactSystem/FactSystemTestBase.cc
View file @
11b2c632
...
...
@@ -129,6 +129,8 @@ void FactSystemTestBase::_qml_test(void)
QVariant
qmlValue
=
control
->
property
(
"text"
).
toInt
();
QCOMPARE
(
qmlValue
.
toInt
(),
3
);
delete
widget
;
}
/// Test QML getting an updated Fact value
...
...
@@ -153,5 +155,7 @@ void FactSystemTestBase::_qmlUpdate_test(void)
QObject
*
control
=
rootObject
->
findChild
<
QObject
*>
(
"testControl"
);
QVERIFY
(
control
!=
NULL
);
QCOMPARE
(
control
->
property
(
"text"
).
toInt
(),
12
);
delete
widget
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment