Improvements to the security warning on plugin install dialog

This commit is contained in:
Matthias Kuhn 2020-06-25 09:43:50 +02:00 committed by Nyall Dawson
parent 94bea56956
commit dff0af41b0

View File

@ -1522,7 +1522,8 @@ void QgsPluginManager::buttonInstallFromZip_clicked()
QMessageBox msgbox; QMessageBox msgbox;
if ( showInstallFromZipWarning ) if ( showInstallFromZipWarning )
{ {
msgbox.setText( tr( "Security warning: installing a plugin from an untrusted source can lead to data loss and/or leak. Continue?" ) ); msgbox.setWindowTitle( tr( "Security warning" ) );
msgbox.setText( tr( "Installing a plugin from an untrusted source can harm your computer. Only continue if you received the plugin from a source you trust. Continue?" ) );
msgbox.setIcon( QMessageBox::Icon::Warning ); msgbox.setIcon( QMessageBox::Icon::Warning );
msgbox.addButton( QMessageBox::Yes ); msgbox.addButton( QMessageBox::Yes );
msgbox.addButton( QMessageBox::No ); msgbox.addButton( QMessageBox::No );