diff options
Diffstat (limited to 'client/macro.cc')
-rw-r--r-- | client/macro.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/macro.cc b/client/macro.cc index 7f3286c..8160c9f 100644 --- a/client/macro.cc +++ b/client/macro.cc @@ -76,7 +76,8 @@ static MacroEventFilter *macro_event_filter = NULL; */ static void create_macro(QString course, QString macro) { - QDomDocument xml_doc = Global::netcom->send(course, macro); + NetCom netcom("", 0, "", ""); + QDomDocument xml_doc = netcom.send(course, macro); cleanup_macros(); @@ -93,7 +94,7 @@ static void create_macro(QString course, QString macro) QDomNode macronode = macros.at(j); // Only create if the macro contains something. if(macronode.childNodes().count()) - macrowindows.push_back( new MacroWindow( macronode ) ); + macrowindows.push_back( new MacroWindow( netcom, macronode, "dims" ) ); } } |