Skip to content
Permalink
Browse files

[plugin manager] Guard from overly wide layout for read-only plugins

  • Loading branch information
nirvn committed Mar 6, 2019
1 parent ca18e8d commit 6a2a5bdb0222ff170bac07fba0c7aa11dce165d4
Showing with 9 additions and 6 deletions.
  1. +9 −6 src/app/pluginmanager/qgspluginmanager.cpp
@@ -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
@@ -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>" );

0 comments on commit 6a2a5bd

Please sign in to comment.
You can’t perform that action at this time.