mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +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)
|
||||
{
|
||||
ISimulatorFactory *factory = qobject_cast<ISimulatorFactory*>(plugin);
|
||||
if(plugin)
|
||||
if(factory)
|
||||
{
|
||||
m_simulator = factory->create(this);
|
||||
connect(m_simulator, SIGNAL(connectionChanged(bool)), this, SLOT(setConnectionStatus(bool)));
|
||||
|
||||
Reference in New Issue
Block a user