From 13b2649fa0eb9f5779af4cec0e4b2924bd26a432 Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Wed, 5 Jun 2013 15:41:14 +0000 Subject: [PATCH] added ?source url arg to gui links. --- src/gui/res/SetupWizardBase.ui | 2 +- src/gui/src/MainWindow.cpp | 4 ++-- src/gui/src/SetupWizard.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/res/SetupWizardBase.ui b/src/gui/res/SetupWizardBase.ui index 07ac9725..222827e4 100644 --- a/src/gui/res/SetupWizardBase.ui +++ b/src/gui/res/SetupWizardBase.ui @@ -296,7 +296,7 @@ - <a href="https://synergy-foss.org/premium/reset/">Forgot password</a> + <a href="https://synergy-foss.org/premium/reset/?source=gui">Forgot password</a> true diff --git a/src/gui/src/MainWindow.cpp b/src/gui/src/MainWindow.cpp index 7aec42b4..5822ea89 100644 --- a/src/gui/src/MainWindow.cpp +++ b/src/gui/src/MainWindow.cpp @@ -16,7 +16,7 @@ * along with this program. If not, see . */ -#define WEBSITE_ADDRESS "synergy-foss.org" +#define DOWNLOAD_URL "http://synergy-foss.org/?source=gui" #include @@ -324,7 +324,7 @@ void MainWindow::updateFound(const QString &version) tr("

Your version of Synergy is out of date. " "Version %1 is now available to " "download.

") - .arg(version).arg("http://synergy-foss.org")); + .arg(version).arg(DOWNLOAD_URL)); } void MainWindow::appendLogNote(const QString& text) diff --git a/src/gui/src/SetupWizard.cpp b/src/gui/src/SetupWizard.cpp index 66caece8..68c69a10 100644 --- a/src/gui/src/SetupWizard.cpp +++ b/src/gui/src/SetupWizard.cpp @@ -112,7 +112,7 @@ bool SetupWizard::validateCurrentPage() } else if (m_pRadioButtonPremiumRegister->isChecked()) { - const QUrl url(QString("https://synergy-foss.org/premium/register/")); + const QUrl url(QString("https://synergy-foss.org/premium/register/?source=gui")); QDesktopServices::openUrl(url); m_pRadioButtonPremiumLogin->setChecked(true); return false;