Skip to content

Commit

Permalink
Fix handling of searchPathsForPlugins in Plugin Manager
Browse files Browse the repository at this point in the history
  • Loading branch information
agiudiceandrea authored and nyalldawson committed Mar 5, 2023
1 parent 69bf2af commit 714622b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app/pluginmanager/qgspluginmanager.cpp
Expand Up @@ -355,10 +355,11 @@ void QgsPluginManager::getCppPluginsMetadata()
QStringList myPathList( pr->libraryDirectory().path() );

const QgsSettings settings;
const QString myPaths = settings.value( QStringLiteral( "plugins/searchPathsForPlugins" ), "" ).toString();
const QStringList myPaths = settings.value( QStringLiteral( "plugins/searchPathsForPlugins" ) ).toStringList();
if ( !myPaths.isEmpty() )
{
myPathList.append( myPaths.split( '|' ) );
myPathList.append( myPaths );
myPathList.removeDuplicates();
}

for ( int j = 0; j < myPathList.size(); ++j )
Expand All @@ -369,7 +370,7 @@ void QgsPluginManager::getCppPluginsMetadata()
if ( pluginDir.count() == 0 )
{
QMessageBox::information( this, tr( "No Plugins" ), tr( "No QGIS plugins found in %1" ).arg( myPluginDir ) );
return;
continue;
}

for ( uint i = 0; i < pluginDir.count(); i++ )
Expand Down

0 comments on commit 714622b

Please sign in to comment.