Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[plugin manager] Guard from overly wide layout for read-only plugins
  • Loading branch information
nirvn committed Mar 6, 2019
1 parent ca18e8d commit 6a2a5bd
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/app/pluginmanager/qgspluginmanager.cpp
Expand Up @@ -899,11 +899,14 @@ void QgsPluginManager::showPluginDetails( QStandardItem *item )
}

#ifdef WITH_QTWEBKIT
html += QLatin1String( "<div id='stars_bg'/><div id='stars'/>" );
html += QLatin1String( "<div id='votes'>" );
html += votes;
html += QLatin1String( "</div>" );
html += QLatin1String( "<div><a id='send_vote_trigger'/></div>" );
if ( metadata->value( QStringLiteral( "readonly" ) ) == QLatin1String( "false" ) )
{
html += QLatin1String( "<div id='stars_bg'/><div id='stars'/>" );
html += QLatin1String( "<div id='votes'>" );
html += votes;
html += QLatin1String( "</div>" );
html += QLatin1String( "<div><a id='send_vote_trigger'/></div>" );
}
#else
voteRating->setText( votes );
#endif
Expand Down Expand Up @@ -992,7 +995,7 @@ void QgsPluginManager::showPluginDetails( QStandardItem *item )
html += QStringLiteral( "<tr><td class='key'>%1 </td><td>%2</td></tr>" ).arg( tr( "Changelog" ), changelog );
}

html += QLatin1String( "</td></tr></table>" );
html += QLatin1String( "</table>" );

html += QLatin1String( "</body>" );

Expand Down

0 comments on commit 6a2a5bd

Please sign in to comment.