summaryrefslogtreecommitdiff
path: root/client/macrowindow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/macrowindow.cc')
-rw-r--r--client/macrowindow.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/client/macrowindow.cc b/client/macrowindow.cc
index 3a6d3c7..18ed218 100644
--- a/client/macrowindow.cc
+++ b/client/macrowindow.cc
@@ -33,7 +33,6 @@
#include <QDomNode>
#include <QByteArray>
-#include "macro.h"
#include "widgets/widget.h"
#include "widgets/window.h"
#include "widgetbuilder.h"
@@ -44,10 +43,11 @@ extern QString user;
extern QString host;
extern quint16 port;
-MacroWindow::MacroWindow(NetCom &n, QDomNode &xml_doc, QString course, bool collapsed)
- : Collapser(), netcom(n)
+MacroWindow::MacroWindow(NetCom *netcom, QDomNode &xml_doc, QString course, bool collapsed)
+ : Collapser()
{
this->course = course;
+ this->netcom = netcom;
setCollapsedWidget(new ResumeWidget());
@@ -145,7 +145,7 @@ bool MacroWindow::doCommit()
// If all entries passed validation, continue commit
if(faulty == 0) {
- netcom.send(widgets, macro, version);
+ netcom->send(widgets, macro, version);
emit updateOnCommit();
setCollapsed(true);
return true;
@@ -278,7 +278,7 @@ void MacroWindow::toggleMacro()
auxwidgets.clear();
luaprograms.clear();
- QDomDocument xml_doc = netcom.send(course, macro);
+ QDomDocument xml_doc = netcom->send(course, macro);
//
// TODO: This is where the dependency checking should occur.