From: tobtoht Date: Thu, 10 Feb 2022 10:37:53 +0000 (+0100) Subject: Refactor useless format string X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=44154b604665111839d6c235e615408f6ee955ea;p=gamesguru%2Ffeather.git Refactor useless format string --- 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);