Fix SEGV on Finish AddDeviceWizard

Telemetry updates were trying to use the device
controller after it had been deleted.
This commit is contained in:
Mark Liversedge
2012-01-21 23:43:58 +00:00
parent bc5ab1e493
commit 883e92237b

View File

@@ -709,6 +709,8 @@ AddPair::searchTimeout(int channel)
void
AddPair::getChannelValues()
{
if (wizard->controller == NULL) return;
// enable disable widgets based upon sensor selection
for (int i=0; i< channelWidget->invisibleRootItem()->childCount(); i++) {
QTreeWidgetItem *item = channelWidget->invisibleRootItem()->child(i);