Skip to content
Permalink
Browse files
fix for issue 4224:
- 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 5b9cc5cfaf443cc0497b94c2a6bcb6dab8f59d97
Showing with 4 additions and 0 deletions.
  1. +2 −0 src/app/qgspluginregistry.cpp
  2. +2 −0 src/core/qgsproviderregistry.cpp
@@ -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
@@ -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

0 comments on commit 5b9cc5c

Please sign in to comment.