Skip to content

Commit f216ddd

Browse files
committedMay 13, 2013
Disable also plugins in user specified directories when running with --noplugins option
1 parent fe072c5 commit f216ddd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
 

‎src/app/qgisapp.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -618,14 +618,14 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent,
618618
// Restoring of plugins can be disabled with --noplugins command line option
619619
// because some plugins may cause QGIS to crash during startup
620620
QgsPluginRegistry::instance()->restoreSessionPlugins( QgsApplication::pluginPath() );
621-
}
622621

623-
// Also restore plugins from user specified plugin directories - added for 1.7
624-
QString myPaths = settings.value( "plugins/searchPathsForPlugins", "" ).toString();
625-
if ( !myPaths.isEmpty() )
626-
{
627-
QStringList myPathList = myPaths.split( "|" );
628-
QgsPluginRegistry::instance()->restoreSessionPlugins( myPathList );
622+
// Also restore plugins from user specified plugin directories - added for 1.7
623+
QString myPaths = settings.value( "plugins/searchPathsForPlugins", "" ).toString();
624+
if ( !myPaths.isEmpty() )
625+
{
626+
QStringList myPathList = myPaths.split( "|" );
627+
QgsPluginRegistry::instance()->restoreSessionPlugins( myPathList );
628+
}
629629
}
630630

631631
mSplash->showMessage( tr( "Initializing file filters" ), Qt::AlignHCenter | Qt::AlignBottom );

0 commit comments

Comments
 (0)
Please sign in to comment.