mirror of
https://github.com/LMMS/lmms.git
synced 2026-05-18 11:45:04 -04:00
Rework after code reading
* Fix possible segfault in `SubPluginFeatures::displayName` * Minor fixes
This commit is contained in:
@@ -180,10 +180,6 @@ void PluginFactory::discoverPlugins()
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//qDebug() << "Ignoring" << file.absoluteFilePath() << "(no lmms_plugin_main())";
|
||||
}
|
||||
|
||||
if(pluginDescriptor)
|
||||
{
|
||||
@@ -199,15 +195,18 @@ void PluginFactory::discoverPlugins()
|
||||
const Plugin::Descriptor::SubPluginFeatures::Key* key = nullptr)
|
||||
{
|
||||
if(!supportedFileTypes.isNull())
|
||||
for (const QString& ext : supportedFileTypes.split(','))
|
||||
{
|
||||
//qDebug() << "Plugin " << info.name() << "supports" << ext;
|
||||
PluginInfoAndKey infoAndKey;
|
||||
infoAndKey.info = info;
|
||||
infoAndKey.key = key
|
||||
? *key
|
||||
: Plugin::Descriptor::SubPluginFeatures::Key();
|
||||
m_pluginByExt.insert(ext, infoAndKey);
|
||||
for (const QString& ext : supportedFileTypes.split(','))
|
||||
{
|
||||
//qDebug() << "Plugin " << info.name()
|
||||
// << "supports" << ext;
|
||||
PluginInfoAndKey infoAndKey;
|
||||
infoAndKey.info = info;
|
||||
infoAndKey.key = key
|
||||
? *key
|
||||
: Plugin::Descriptor::SubPluginFeatures::Key();
|
||||
m_pluginByExt.insert(ext, infoAndKey);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user