Skip to content

Commit

Permalink
fix for issue 4224:
Browse files Browse the repository at this point in the history
- plugins are loaded only if called *plugin.so
- providers are loaded only if called *provider.so
  • Loading branch information
mbernasocchi committed Nov 23, 2011
1 parent 4b4cbe5 commit 5b9cc5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/qgspluginregistry.cpp
Expand Up @@ -384,6 +384,8 @@ void QgsPluginRegistry::restoreSessionPlugins( QString thePluginDirString )

#ifdef WIN32
QString pluginExt = "*.dll";
#elif ANDROID
QString pluginExt = "*plugin.so";
#else
QString pluginExt = "*.so*";
#endif
Expand Down
2 changes: 2 additions & 0 deletions src/core/qgsproviderregistry.cpp
Expand Up @@ -78,6 +78,8 @@ QgsProviderRegistry::QgsProviderRegistry( QString pluginPath )

#ifdef WIN32
mLibraryDirectory.setNameFilters( QStringList( "*.dll" ) );
#elif ANDROID
mLibraryDirectory.setNameFilters( QStringList( "*provider.so" ) );
#else
mLibraryDirectory.setNameFilters( QStringList( "*.so" ) );
#endif
Expand Down

0 comments on commit 5b9cc5c

Please sign in to comment.