mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-07 00:15:48 -04:00
Fix handling of searchPathsForPlugins in qgisapp
This commit is contained in:
parent
00772f3b39
commit
94a3ac37a0
@ -1604,10 +1604,10 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipBadLayers
|
||||
QgsPluginRegistry::instance()->restoreSessionPlugins( QgsApplication::pluginPath() );
|
||||
|
||||
// Also restore plugins from user specified plugin directories
|
||||
QString myPaths = settings.value( QStringLiteral( "plugins/searchPathsForPlugins" ), "" ).toString();
|
||||
if ( !myPaths.isEmpty() )
|
||||
QStringList myPathList = settings.value( QStringLiteral( "plugins/searchPathsForPlugins" ) ).toStringList();
|
||||
if ( !myPathList.isEmpty() )
|
||||
{
|
||||
QStringList myPathList = myPaths.split( '|' );
|
||||
myPathList.removeDuplicates();
|
||||
QgsPluginRegistry::instance()->restoreSessionPlugins( myPathList );
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user