From d325b9347a6f0fbd07e7b093df86db9ca8a629a9 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 22 Jan 2021 19:07:52 +0200 Subject: [PATCH] Fix opening link to a website. --- src/app/tape/dialogs/dialogabouttape.cpp | 2 +- src/app/valentina/dialogs/dialogaboutapp.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/tape/dialogs/dialogabouttape.cpp b/src/app/tape/dialogs/dialogabouttape.cpp index c015ef7a2..327051fee 100644 --- a/src/app/tape/dialogs/dialogabouttape.cpp +++ b/src/app/tape/dialogs/dialogabouttape.cpp @@ -52,7 +52,7 @@ DialogAboutTape::DialogAboutTape(QWidget *parent) RetranslateUi(); connect(ui->pushButton_Web_Site, &QPushButton::clicked, this, []() { - if ( QDesktopServices::openUrl(QUrl(VER_COMPANYDOMAIN_STR)) == false) + if (not QDesktopServices::openUrl(QUrl(QStringLiteral("https://%1").arg(VER_COMPANYDOMAIN_STR)))) { qWarning() << tr("Cannot open your default browser"); } diff --git a/src/app/valentina/dialogs/dialogaboutapp.cpp b/src/app/valentina/dialogs/dialogaboutapp.cpp index f5b7f10b5..a23317deb 100644 --- a/src/app/valentina/dialogs/dialogaboutapp.cpp +++ b/src/app/valentina/dialogs/dialogaboutapp.cpp @@ -63,7 +63,7 @@ DialogAboutApp::DialogAboutApp(QWidget *parent) : ui->pushButton_Web_Site->setText(tr("Web site : %1").arg(VER_COMPANYDOMAIN_STR)); connect(ui->pushButton_Web_Site, &QPushButton::clicked, this, []() { - if ( QDesktopServices::openUrl(QUrl(VER_COMPANYDOMAIN_STR)) == false) + if (not QDesktopServices::openUrl(QUrl(QStringLiteral("https://%1").arg(VER_COMPANYDOMAIN_STR)))) { qWarning() << tr("Cannot open your default browser"); }