Skip to content

Commit 94a3ac3

Browse files
agiudiceandreanyalldawson
authored andcommittedMar 1, 2023
Fix handling of searchPathsForPlugins in qgisapp
1 parent 00772f3 commit 94a3ac3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1604,10 +1604,10 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipBadLayers
16041604
QgsPluginRegistry::instance()->restoreSessionPlugins( QgsApplication::pluginPath() );
16051605

16061606
// Also restore plugins from user specified plugin directories
1607-
QString myPaths = settings.value( QStringLiteral( "plugins/searchPathsForPlugins" ), "" ).toString();
1608-
if ( !myPaths.isEmpty() )
1607+
QStringList myPathList = settings.value( QStringLiteral( "plugins/searchPathsForPlugins" ) ).toStringList();
1608+
if ( !myPathList.isEmpty() )
16091609
{
1610-
QStringList myPathList = myPaths.split( '|' );
1610+
myPathList.removeDuplicates();
16111611
QgsPluginRegistry::instance()->restoreSessionPlugins( myPathList );
16121612
}
16131613
}

0 commit comments

Comments
 (0)
Please sign in to comment.