added ?source url arg to gui links.

This commit is contained in:
Nick Bolton 2013-06-05 15:41:14 +00:00
parent 2182906451
commit 13b2649fa0
3 changed files with 4 additions and 4 deletions

View File

@ -296,7 +296,7 @@
<item row="2" column="1">
<widget class="QLabel" name="m_pLabelForgotPassword">
<property name="text">
<string>&lt;a href=&quot;https://synergy-foss.org/premium/reset/&quot;&gt;Forgot password&lt;/a&gt;</string>
<string>&lt;a href=&quot;https://synergy-foss.org/premium/reset/?source=gui&quot;&gt;Forgot password&lt;/a&gt;</string>
</property>
<property name="openExternalLinks">
<bool>true</bool>

View File

@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define WEBSITE_ADDRESS "synergy-foss.org"
#define DOWNLOAD_URL "http://synergy-foss.org/?source=gui"
#include <iostream>
@ -324,7 +324,7 @@ void MainWindow::updateFound(const QString &version)
tr("<p>Your version of Synergy is out of date. "
"Version <b>%1</b> is now available to "
"<a href=\"%2\">download</a>.</p>")
.arg(version).arg("http://synergy-foss.org"));
.arg(version).arg(DOWNLOAD_URL));
}
void MainWindow::appendLogNote(const QString& text)

View File

@ -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;