Further SEGV on Server list

Ugh. Another SEGV related to removal of the
race server list.
This commit is contained in:
Mark Liversedge
2011-10-24 18:52:26 +01:00
parent 689e449c08
commit 508b684746

View File

@@ -215,8 +215,8 @@ TrainTool::configChanged()
Devices = all.getList();
for (int i=0; i<Devices.count(); i++) {
if (Devices.at(i).type == DEV_GSERVER) {
QTreeWidgetItem *server = new QTreeWidgetItem(allServers, i);
server->setText(0, Devices.at(i).name);
//QTreeWidgetItem *server = new QTreeWidgetItem(allServers, i);
//server->setText(0, Devices.at(i).name);
} else {
QTreeWidgetItem *device = new QTreeWidgetItem(allDevices, i);
device->setText(0, Devices.at(i).name);
@@ -488,7 +488,7 @@ void TrainTool::Start() // when start button is pressed
status |=RT_RUNNING;
// should we be streaming too?
setStreamController();
//setStreamController();
if (streamController != NULL) status |= RT_STREAMING;
setStartText(tr("Lap"));