--- a/QTfrontend/HWApplication.cpp Thu Apr 04 14:01:54 2013 +0400
+++ b/QTfrontend/HWApplication.cpp Thu Apr 04 18:47:09 2013 +0200
@@ -18,6 +18,7 @@
#include "HWApplication.h"
#include <QFileOpenEvent>
+#include <QEvent>
#include "hwform.h"
#include "MessageDialog.h"
@@ -34,7 +35,7 @@
}
#endif
-HWApplication::HWApplication(int &argc, char **argv):
+HWApplication::HWApplication(int &argc, char **argv) :
QApplication(argc, argv)
{
#if !defined(Q_WS_WIN)
@@ -83,6 +84,8 @@
return true;
} else if (scheme == "hwplay") {
int port = openEvent->url().port(NETGAME_DEFAULT_PORT);
+ if (address == "")
+ address = NETGAME_DEFAULT_SERVER;
form->NetConnectQuick(address, (quint16) port);
return true;
} else {