Commit 11b2c632 authored by Don Gagne's avatar Don Gagne

Delete widgets

Otherwise they end up referencing deleted Facts on link disconnect
parent 09420502
......@@ -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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment