externalLinkWarning: minor fixes

This commit is contained in:
tobtoht 2021-02-04 00:27:29 +01:00
parent e0f7473ed4
commit 7556670f88
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View file

@ -165,12 +165,13 @@ void Utils::externalLinkWarning(QWidget *parent, const QString &url){
body += "\n\nYou will NOT be using Tor."; body += "\n\nYou will NOT be using Tor.";
QMessageBox linkWarning; QMessageBox linkWarning(parent);
linkWarning.setWindowTitle("External link warning"); linkWarning.setWindowTitle("External link warning");
linkWarning.setText(body); linkWarning.setText(body);
QPushButton *copy = linkWarning.addButton("Copy link", QMessageBox::HelpRole); QPushButton *copy = linkWarning.addButton("Copy link", QMessageBox::HelpRole);
linkWarning.addButton(QMessageBox::Cancel); linkWarning.addButton(QMessageBox::Cancel);
linkWarning.addButton(QMessageBox::Ok); linkWarning.addButton(QMessageBox::Ok);
linkWarning.setDefaultButton(QMessageBox::Ok);
linkWarning.exec(); linkWarning.exec();