mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-01 06:35:41 +08:00
Fix crash when a plugin with a different interface
is found
This commit is contained in:
@@ -92,7 +92,7 @@ namespace BlackCore
|
|||||||
if (plugin)
|
if (plugin)
|
||||||
{
|
{
|
||||||
ISimulatorFactory *factory = qobject_cast<ISimulatorFactory*>(plugin);
|
ISimulatorFactory *factory = qobject_cast<ISimulatorFactory*>(plugin);
|
||||||
if(plugin)
|
if(factory)
|
||||||
{
|
{
|
||||||
m_simulator = factory->create(this);
|
m_simulator = factory->create(this);
|
||||||
connect(m_simulator, SIGNAL(connectionChanged(bool)), this, SLOT(setConnectionStatus(bool)));
|
connect(m_simulator, SIGNAL(connectionChanged(bool)), this, SLOT(setConnectionStatus(bool)));
|
||||||
|
|||||||
Reference in New Issue
Block a user