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:
parent
c2786d36c9
commit
69fc1b9354
2 changed files with 12 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue