ExternalLinkWarning: don't show Tor warning on Tails/Whonix

This commit is contained in:
tobtoht 2020-12-16 18:02:49 +01:00
parent 6c8255b12b
commit 70810ce6a2
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View file

@ -22,6 +22,7 @@
#include "utils.h"
#include "utils/config.h"
#include "utils/tails.h"
#include "utils/whonix.h"
// Application log for current session
QVector<logMessage> applicationLog = QVector<logMessage>(); // todo: replace with ring buffer
@ -284,6 +285,8 @@ void Utils::externalLinkWarning(QWidget *parent, const QString &url){
QString body = "You are about to open the following link:\n\n";
body += QString("%1\n\n").arg(url);
if (!(TailsOS::detect() || WhonixOS::detect()))
body += "You will NOT be using Tor.";
switch (QMessageBox::warning(parent, "External link warning", body, QMessageBox::Cancel|QMessageBox::Ok)) {