mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-02-03 09:44:01 -05:00
Revert "Removed useless reference to the QPluginLoader in the Plugin structure"
This reverts commit 1e881d0b2f
to avoid future conflicts.
This commit is contained in:
parent
c500e6f408
commit
c99b16f7d7
@ -163,9 +163,9 @@ void PluginManager::loadPluginsDir(const QDir& dir)
|
||||
qWarning() << "PluginManager::loadPluginsDir: " << qPrintable(loader->errorString());
|
||||
}
|
||||
|
||||
if (plugin)
|
||||
if (plugin != 0)
|
||||
{
|
||||
m_plugins.append(Plugin(fileName, plugin));
|
||||
m_plugins.append(Plugin(fileName, loader, plugin));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -42,10 +42,12 @@ public:
|
||||
struct Plugin
|
||||
{
|
||||
QString filename;
|
||||
QPluginLoader* loader;
|
||||
PluginInterface* pluginInterface;
|
||||
|
||||
Plugin(const QString& _filename, PluginInterface* _plugin) :
|
||||
Plugin(const QString& _filename, QPluginLoader* pluginLoader, PluginInterface* _plugin) :
|
||||
filename(_filename),
|
||||
loader(pluginLoader),
|
||||
pluginInterface(_plugin)
|
||||
{ }
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user