diff options
author | deva <deva> | 2008-08-19 07:50:47 +0000 |
---|---|---|
committer | deva <deva> | 2008-08-19 07:50:47 +0000 |
commit | 26a6b739a38e928d005ac689e693a4d4dd7dc3ea (patch) | |
tree | c9f60b66fc795cf67baaac95ebb9eac03494f677 /client/macro.cc | |
parent | 6a2cc91b62f227ca71d759654ed34c138d236800 (diff) |
Made the netcom object global, for socket reuse.
Diffstat (limited to 'client/macro.cc')
-rw-r--r-- | client/macro.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/client/macro.cc b/client/macro.cc index b0943d0..7f3286c 100644 --- a/client/macro.cc +++ b/client/macro.cc @@ -76,8 +76,7 @@ static MacroEventFilter *macro_event_filter = NULL; */ static void create_macro(QString course, QString macro) { - NetCom netcom(host, port, user, cpr); - QDomDocument xml_doc = netcom.send(course, macro); + QDomDocument xml_doc = Global::netcom->send(course, macro); cleanup_macros(); |