diff -r 89a6b7cc6f95 -r fbc9bcc6c39d QTfrontend/hwform.cpp --- a/QTfrontend/hwform.cpp Fri Jan 04 19:42:49 2013 +0400 +++ b/QTfrontend/hwform.cpp Tue Jan 08 21:27:35 2013 +0200 @@ -1340,6 +1340,8 @@ { //open dialog HWPasswordDialog * pwDialog = new HWPasswordDialog(this); + // make the "new account" button dialog open a browser with the registration page + connect(pwDialog->pbNewAccount, SIGNAL(clicked()), this, SLOT(openRegistrationPage())); pwDialog->cbSave->setChecked(config->value("net/savepassword", true).toBool()); //if nickname is present, put it into the field @@ -1927,6 +1929,11 @@ ShowErrorMessage(QMessageBox::tr("File association failed.")); } +void HWForm::openRegistrationPage() +{ + QDesktopServices::openUrl(QUrl("http://www.hedgewars.org/user/register")); +} + void HWForm::saveDemoWithCustomName() { if(!m_lastDemo.isEmpty())