diff --git a/src/blackcore/context_simulator_impl.cpp b/src/blackcore/context_simulator_impl.cpp index ab02a091e..f64404236 100644 --- a/src/blackcore/context_simulator_impl.cpp +++ b/src/blackcore/context_simulator_impl.cpp @@ -92,7 +92,7 @@ namespace BlackCore if (plugin) { ISimulatorFactory *factory = qobject_cast(plugin); - if(plugin) + if(factory) { m_simulator = factory->create(this); connect(m_simulator, SIGNAL(connectionChanged(bool)), this, SLOT(setConnectionStatus(bool)));