mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
Fix compile issue with plugins on msvc.
This commit is contained in:
parent
f042ba9b88
commit
8e0d849e01
|
@ -206,26 +206,26 @@ void Plugins::loadAvailablePlugins()
|
|||
}
|
||||
}
|
||||
|
||||
PluginInterface* Plugins::initPlugin(PluginInterface::InitState state, PluginInterface* interface, QPluginLoader* loader)
|
||||
PluginInterface* Plugins::initPlugin(PluginInterface::InitState state, PluginInterface* pluginInterface, QPluginLoader* loader)
|
||||
{
|
||||
if (!interface) {
|
||||
if (!pluginInterface) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
interface->init(state, DataPaths::currentProfilePath() + "/extensions/");
|
||||
pluginInterface->init(state, DataPaths::currentProfilePath() + "/extensions/");
|
||||
|
||||
if (!interface->testPlugin()) {
|
||||
interface->unload();
|
||||
if (!pluginInterface->testPlugin()) {
|
||||
pluginInterface->unload();
|
||||
loader->unload();
|
||||
|
||||
emit pluginUnloaded(interface);
|
||||
emit pluginUnloaded(pluginInterface);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
qApp->installTranslator(interface->getTranslator(mApp->currentLanguageFile()));
|
||||
qApp->installTranslator(pluginInterface->getTranslator(mApp->currentLanguageFile()));
|
||||
|
||||
return interface;
|
||||
return pluginInterface;
|
||||
}
|
||||
|
||||
void Plugins::refreshLoadedPlugins()
|
||||
|
|
|
@ -91,7 +91,7 @@ signals:
|
|||
|
||||
private:
|
||||
bool alreadySpecInAvailable(const PluginSpec &spec);
|
||||
PluginInterface* initPlugin(PluginInterface::InitState state , PluginInterface* interface, QPluginLoader* loader);
|
||||
PluginInterface* initPlugin(PluginInterface::InitState state , PluginInterface* pluginInterface, QPluginLoader* loader);
|
||||
|
||||
void refreshLoadedPlugins();
|
||||
void loadAvailablePlugins();
|
||||
|
|
Loading…
Reference in New Issue
Block a user