mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
refs #462 Remove Q_ASSERT for plugin loading failure
This commit is contained in:
@@ -69,7 +69,11 @@ namespace BlackCore
|
||||
if (!plugin.listener)
|
||||
{
|
||||
ISimulatorFactory *factory = getPluginById<ISimulatorFactory>(pluginId);
|
||||
Q_ASSERT(factory);
|
||||
if (!factory)
|
||||
{
|
||||
m_plugins.remove(pluginId);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
ISimulatorListener *listener = factory->createListener(plugin.info);
|
||||
connect(qApp, &QCoreApplication::aboutToQuit, listener, &QObject::deleteLater);
|
||||
|
||||
Reference in New Issue
Block a user