Skip to content

Commit

Permalink
Follow up 248bc5d
Browse files Browse the repository at this point in the history
  • Loading branch information
borysiasty committed Nov 25, 2017
1 parent 3d6aa9c commit 5c22e31
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app/pluginmanager/qgspluginmanager.cpp
Expand Up @@ -819,13 +819,14 @@ void QgsPluginManager::showPluginDetails( QStandardItem *item )
{
iconPath = "qrc" + iconPath;
}
#if !defined(Q_OS_WIN)
// Only add the file:// prefix on non-windows systems
else if ( ! iconPath.startsWith( QLatin1String( "http" ) ) )
{
#if defined(Q_OS_WIN)
iconPath = "file:///" + iconPath;
#else
iconPath = "file://" + iconPath;
}
#endif
}
html += QStringLiteral( "<img src=\"%1\" style=\"float:right;max-width:64px;max-height:64px;\">" ).arg( iconPath );
}

Expand Down

0 comments on commit 5c22e31

Please sign in to comment.