summaryrefslogtreecommitdiff
path: root/client/macro.cc
diff options
context:
space:
mode:
authordeva <deva>2008-09-19 12:07:48 +0000
committerdeva <deva>2008-09-19 12:07:48 +0000
commit3541224f0fb3d5b7b531eef45318d7e41cb51915 (patch)
tree450e6fc9d3ae57f7db7a79cfa87386e0b7b09c92 /client/macro.cc
parenteff75e9193b0e1d9175f49e003977d524c6a2d36 (diff)
First working version of the collapser-pracro view.
Diffstat (limited to 'client/macro.cc')
-rw-r--r--client/macro.cc5
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" ) );
}
}