kopia lustrzana https://github.com/f4exb/sdrangel
				
				
				
			Revert "Removed useless reference to the QPluginLoader in the Plugin structure"
This reverts commit 1e881d0b2f to avoid future conflicts.
			
			
				pull/351/head
			
			
		
							rodzic
							
								
									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)
 | 
			
		||||
		{ }
 | 
			
		||||
	};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Ładowanie…
	
		Reference in New Issue