diff --git a/src/app/pluginmanager/qgspluginmanager.cpp b/src/app/pluginmanager/qgspluginmanager.cpp index b10887a2e05..d6780615308 100644 --- a/src/app/pluginmanager/qgspluginmanager.cpp +++ b/src/app/pluginmanager/qgspluginmanager.cpp @@ -812,16 +812,20 @@ void QgsPluginManager::showPluginDetails( QStandardItem *item ) html += QLatin1String( "
" ); QString iconPath = metadata->value( QStringLiteral( "icon" ) ); - if ( QFileInfo( iconPath ).isFile() ) + + if ( QFileInfo( iconPath ).isFile() || iconPath.startsWith( QLatin1String( "http" ) ) ) { - if ( iconPath.contains( QLatin1String( ":/" ) ) ) + if ( iconPath.startsWith( QLatin1String( ":/" ) ) ) { iconPath = "qrc" + iconPath; } - else +#if !defined(Q_OS_WIN) + // Only add the file:// prefix on non-windows systems + else if ( ! iconPath.startsWith( QLatin1String( "http" ) ) ) { iconPath = "file://" + iconPath; } +#endif html += QStringLiteral( "" ).arg( iconPath ); }