Fix crash when a plugin with a different interface

is found
This commit is contained in:
Roland Winklmeier
2014-04-13 18:40:19 +02:00
parent 903ddf7841
commit 54fe898ff8

View File

@@ -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)));