make the plugin installer and the fTools enabled by default

git-svn-id: http://svn.osgeo.org/qgis/trunk@10369 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
borysiasty 2009-03-21 17:14:22 +00:00
parent b1c0642550
commit 1f86639ff8

View File

@ -344,6 +344,16 @@ void QgsPluginRegistry::restoreSessionPlugins( QString thePluginDirString )
QStringList pluginList = mPythonUtils->pluginList();
QgsDebugMsg( "Loading python plugins" );
// make the plugin installer and the fTools enabled by default:
if ( !mySettings.contains( "/PythonPlugins/plugin_installer" ) )
{
mySettings.setValue( "/PythonPlugins/plugin_installer", true );
}
if ( !mySettings.contains( "/PythonPlugins/fTools" ) )
{
mySettings.setValue( "/PythonPlugins/fTools", true );
}
for ( int i = 0; i < pluginList.size(); i++ )
{
QString packageName = pluginList[i];