From 44154b604665111839d6c235e615408f6ee955ea Mon Sep 17 00:00:00 2001 From: tobtoht Date: Thu, 10 Feb 2022 11:37:53 +0100 Subject: [PATCH] Refactor useless format string --- src/utils/Utils.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/utils/Utils.cpp b/src/utils/Utils.cpp index 5c21c7e7..96e525c1 100644 --- a/src/utils/Utils.cpp +++ b/src/utils/Utils.cpp @@ -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); -- 2.52.0