Skip to content

Commit

Permalink
[Plugin manager] Add a label for built-in plugins explaining they are…
Browse files Browse the repository at this point in the history
…n't uninstallable.
  • Loading branch information
borysiasty committed Oct 23, 2017
1 parent ea0e09b commit 87d087b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/pluginmanager/qgspluginmanager.cpp
Expand Up @@ -810,6 +810,13 @@ void QgsPluginManager::showPluginDetails( QStandardItem *item )
"</table>" ).arg( tr( "This plugin is trusted" ) );
}

if ( metadata->value( QStringLiteral( "readonly" ) ) == QLatin1String( "true" ) )
{
html += QString( "<table bgcolor=\"#90EEE9\" cellspacing=\"2\" cellpadding=\"2\" width=\"100%\">"
" <tr><td width=\"100%\" style=\"color:#660000\"><b>%1</b></td></tr>"
"</table>" ).arg( tr( "This is a system plugin, so you can't uninstall it" ) );
}

// Now the metadata

html += QLatin1String( "<table cellspacing=\"4\" width=\"100%\"><tr><td>" );
Expand Down

1 comment on commit 87d087b

@borysiasty
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rduivenvoorde I'm sorry, doesn't this new label bar require [needs-doc]? It fixes https://issues.qgis.org/issues/9405

Please sign in to comment.