summaryrefslogtreecommitdiff
path: root/client/pracro.cc
diff options
context:
space:
mode:
authordeva <deva>2008-08-19 07:50:47 +0000
committerdeva <deva>2008-08-19 07:50:47 +0000
commit26a6b739a38e928d005ac689e693a4d4dd7dc3ea (patch)
treec9f60b66fc795cf67baaac95ebb9eac03494f677 /client/pracro.cc
parent6a2cc91b62f227ca71d759654ed34c138d236800 (diff)
Made the netcom object global, for socket reuse.
Diffstat (limited to 'client/pracro.cc')
-rw-r--r--client/pracro.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/pracro.cc b/client/pracro.cc
index 051fe2b..fdb0d7d 100644
--- a/client/pracro.cc
+++ b/client/pracro.cc
@@ -30,7 +30,9 @@
#include <QEvent>
#include <QStringList>
#include <QSettings>
+
#include "macro.h"
+#include "netcom.h"
#define VERSION "1.0"
@@ -136,6 +138,8 @@ int main(int argc, char *argv[])
port = settings.value("port").toInt();
settings.endGroup();
+ Global::netcom = new NetCom(host, port, user, cpr);
+
new_macro(course, macro);
//app.setQuitOnLastWindowClosed(false);
@@ -143,5 +147,7 @@ int main(int argc, char *argv[])
cleanup_macros();
+ delete Global::netcom;
+
return ret;
}