Commit 643026fa authored by Frederik Gladhorn's avatar Frederik Gladhorn
Browse files

Disable plugins for now

parent a3fb02b8
...@@ -816,19 +816,21 @@ bool DocumentPrivate::openRelativeFile( const QString & fileName ) ...@@ -816,19 +816,21 @@ bool DocumentPrivate::openRelativeFile( const QString & fileName )
Generator * DocumentPrivate::loadGeneratorLibrary( const KService::Ptr &service ) Generator * DocumentPrivate::loadGeneratorLibrary( const KService::Ptr &service )
{ {
KPluginFactory *factory = KPluginLoader( service->library() ).factory(); #pragma message("KF5 FIXME DocumentPrivate::loadGeneratorLibrary is disabled")
if ( !factory ) // KPluginFactory *factory = KPluginLoader( service->library() ).factory();
{ // if ( !factory )
kWarning(OkularDebug).nospace() << "Invalid plugin factory for " << service->library() << "!"; // {
return 0; // kWarning(OkularDebug).nospace() << "Invalid plugin factory for " << service->library() << "!";
} // return 0;
Generator * generator = factory->create< Okular::Generator >( service->pluginKeyword(), 0 ); // }
GeneratorInfo info( factory->componentData() ); // Generator * generator = factory->create< Okular::Generator >( service->pluginKeyword(), 0 );
info.generator = generator; // GeneratorInfo info( factory->componentData() );
if ( info.data.isValid() && info.data.aboutData() ) // info.generator = generator;
info.catalogName = info.data.aboutData()->catalogName(); // if ( info.data.isValid() && info.data.aboutData() )
m_loadedGenerators.insert( service->name(), info ); // info.catalogName = info.data.aboutData()->catalogName();
return generator; // m_loadedGenerators.insert( service->name(), info );
// return generator;
return 0;
} }
void DocumentPrivate::loadAllGeneratorLibraries() void DocumentPrivate::loadAllGeneratorLibraries()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment