1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-07-21 02:05:20 -04:00

Revert "Removed useless reference to the QPluginLoader in the Plugin structure"

This reverts commit 1e881d0b2f4ec615e09a6735a264b0b7cbe70226 to avoid future conflicts.
This commit is contained in:
f4exb 2019-05-22 13:49:44 +02:00
parent c500e6f408
commit c99b16f7d7
2 changed files with 5 additions and 3 deletions

View File

@ -163,9 +163,9 @@ void PluginManager::loadPluginsDir(const QDir& dir)
qWarning() << "PluginManager::loadPluginsDir: " << qPrintable(loader->errorString()); 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 else
{ {

View File

@ -42,10 +42,12 @@ public:
struct Plugin struct Plugin
{ {
QString filename; QString filename;
QPluginLoader* loader;
PluginInterface* pluginInterface; PluginInterface* pluginInterface;
Plugin(const QString& _filename, PluginInterface* _plugin) : Plugin(const QString& _filename, QPluginLoader* pluginLoader, PluginInterface* _plugin) :
filename(_filename), filename(_filename),
loader(pluginLoader),
pluginInterface(_plugin) pluginInterface(_plugin)
{ } { }
}; };