Skip to content

Commit 5c22e31

Browse files
committed
Follow up 248bc5d
1 parent 3d6aa9c commit 5c22e31

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/app/pluginmanager/qgspluginmanager.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -819,13 +819,14 @@ void QgsPluginManager::showPluginDetails( QStandardItem *item )
819819
{
820820
iconPath = "qrc" + iconPath;
821821
}
822-
#if !defined(Q_OS_WIN)
823-
// Only add the file:// prefix on non-windows systems
824822
else if ( ! iconPath.startsWith( QLatin1String( "http" ) ) )
825823
{
824+
#if defined(Q_OS_WIN)
825+
iconPath = "file:///" + iconPath;
826+
#else
826827
iconPath = "file://" + iconPath;
827-
}
828828
#endif
829+
}
829830
html += QStringLiteral( "<img src=\"%1\" style=\"float:right;max-width:64px;max-height:64px;\">" ).arg( iconPath );
830831
}
831832

0 commit comments

Comments
 (0)