Refactor useless format string

This commit is contained in:
tobtoht 2022-02-10 11:37:53 +01:00
parent 938d2ddb4e
commit 44154b6046
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View file

@ -401,13 +401,11 @@ void externalLinkWarning(QWidget *parent, const QString &url){
return;
}
QString body = "You are about to open the following link:\n\n";
body += QString("%1").arg(url);
QString body = QString("You are about to open the following link:\n\n%1").arg(url);
if (!(TailsOS::detect() || WhonixOS::detect()))
body += "\n\nYou will NOT be using Tor.";
QMessageBox linkWarning(parent);
linkWarning.setWindowTitle("External link warning");
linkWarning.setText(body);