Avoid ASSERT from emulated driver

* not all plugins are installed
* use default simulator if there is no simulator info
This commit is contained in:
Klaus Basan
2019-05-25 23:14:33 +02:00
parent e7428d5797
commit f33ffc32be
2 changed files with 18 additions and 1 deletions

View File

@@ -384,7 +384,11 @@ namespace BlackSimPlugin
}
else
{
// not all drivers are installed
CLogMessage(this).validationError(u"No valid plugin for '%1'") << simulator.toQString();
const QString sn = simulator.toQString(true);
const CSimulatorPluginInfo faked = CSimulatorPluginInfo(simulator.toPluginIdentifier(), sn, sn, QStringLiteral("Emulated, but uninstalled '%1'").arg(sn), false);
this->setNewPluginInfo(faked, settings.getDefaultModel());
}
// update provider, own name, title