mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
Avoid ASSERT from emulated driver
* not all plugins are installed * use default simulator if there is no simulator info
This commit is contained in:
committed by
Mat Sutcliffe
parent
0d2bf4865a
commit
a646e122af
@@ -384,7 +384,11 @@ namespace BlackSimPlugin
|
||||
}
|
||||
else
|
||||
{
|
||||
CLogMessage(this).validationError(u"No valid plugin for '%1'") << simulator.toQString();
|
||||
// not all drivers are installed
|
||||
CLogMessage(this).validationError(u"No valid plugin in emulated driver for '%1'") << simulator.toQString();
|
||||
const QString sn = simulator.toQString(true);
|
||||
const CSimulatorPluginInfo fakedPlugin = CSimulatorPluginInfo(simulator.toPluginIdentifier(), sn, sn, QStringLiteral("Emulated, but uninstalled '%1'").arg(sn), false);
|
||||
this->setNewPluginInfo(fakedPlugin, settings.getDefaultModel());
|
||||
}
|
||||
|
||||
// update provider, own name, title
|
||||
|
||||
Reference in New Issue
Block a user