File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -899,11 +899,14 @@ void QgsPluginManager::showPluginDetails( QStandardItem *item )
899
899
}
900
900
901
901
#ifdef WITH_QTWEBKIT
902
- html += QLatin1String ( " <div id='stars_bg'/><div id='stars'/>" );
903
- html += QLatin1String ( " <div id='votes'>" );
904
- html += votes;
905
- html += QLatin1String ( " </div>" );
906
- html += QLatin1String ( " <div><a id='send_vote_trigger'/></div>" );
902
+ if ( metadata->value ( QStringLiteral ( " readonly" ) ) == QLatin1String ( " false" ) )
903
+ {
904
+ html += QLatin1String ( " <div id='stars_bg'/><div id='stars'/>" );
905
+ html += QLatin1String ( " <div id='votes'>" );
906
+ html += votes;
907
+ html += QLatin1String ( " </div>" );
908
+ html += QLatin1String ( " <div><a id='send_vote_trigger'/></div>" );
909
+ }
907
910
#else
908
911
voteRating->setText ( votes );
909
912
#endif
@@ -992,7 +995,7 @@ void QgsPluginManager::showPluginDetails( QStandardItem *item )
992
995
html += QStringLiteral ( " <tr><td class='key'>%1 </td><td>%2</td></tr>" ).arg ( tr ( " Changelog" ), changelog );
993
996
}
994
997
995
- html += QLatin1String ( " </td></tr></ table>" );
998
+ html += QLatin1String ( " </table>" );
996
999
997
1000
html += QLatin1String ( " </body>" );
998
1001
You can’t perform that action at this time.
0 commit comments