fix build error (please stick with C++)

This commit is contained in:
Juergen E. Fischer 2012-11-06 08:44:35 +01:00
parent 410deb9d56
commit ff78ef1802

View File

@ -211,8 +211,10 @@ void QgsPluginManager::getPythonPluginDescriptions()
myData.setRenderAsWidget( false );
myData.setChecked( false ); //start off assuming false
if ( iconName == "__error__" or iconName.isEmpty() )
if ( iconName == "__error__" || iconName.isEmpty() )
{
myData.setIcon( QPixmap( QgsApplication::defaultThemePath() + "/plugin.png" ) );
}
else
{
bool relative = QFileInfo( iconName ).isRelative();