Skip to content

Commit

Permalink
Update to e31fb3c
Browse files Browse the repository at this point in the history
- Add comments about issue
- Set pkgDataPath to empty QString for fix
  • Loading branch information
dakcarto committed Oct 25, 2012
1 parent a622d1b commit 9336e35
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/qgspluginregistry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,17 +434,20 @@ void QgsPluginRegistry::restoreSessionPlugins( QString thePluginDirString )
{
QString packageName = pluginList[i];

// TODO: apply better solution for #5879
// start - temporary fix for issue #5879
if ( QgsApplication::isRunningFromBuildDir() )
{
if ( corePlugins.contains( packageName ) )
{
QgsApplication::setPkgDataPath( QgsApplication::buildOutputPath() );
QgsApplication::setPkgDataPath( QString("") );
}
else
{
QgsApplication::setPkgDataPath( QgsApplication::buildSourcePath() );
}
}
// end - temporary fix for issue #5879, more below

if ( checkPythonPlugin( packageName ) )
{
Expand All @@ -456,10 +459,12 @@ void QgsPluginRegistry::restoreSessionPlugins( QString thePluginDirString )
}
}
}
// start - temporary fix for issue #5879, more above
if ( QgsApplication::isRunningFromBuildDir() )
{
QgsApplication::setPkgDataPath( QgsApplication::buildSourcePath() );
}
// end - temporary fix for issue #5879
}

QgsDebugMsg( "Plugin loading completed" );
Expand Down

0 comments on commit 9336e35

Please sign in to comment.