1
0
Fork 0
mirror of https://github.com/EdgeTX/edgetx.git synced 2025-07-20 14:55:09 +03:00

We won't start the bad simulator

This commit is contained in:
Bertrand Songis 2016-03-25 22:48:00 +01:00
parent c2786d36c9
commit 69fc1b9354
2 changed files with 12 additions and 10 deletions

View file

@ -69,7 +69,7 @@ void registerSimulators()
}
}
SimulatorFactory *getSimulatorFactory(const QString &name)
SimulatorFactory * getSimulatorFactory(const QString & name)
{
QString simuName = name;
while(1) {
@ -85,6 +85,8 @@ SimulatorFactory *getSimulatorFactory(const QString &name)
if (pos <= 0)
break;
simuName = simuName.mid(0, pos);
if (simuName.count('-') == 0)
break;
}
return NULL;
}