summaryrefslogtreecommitdiff
path: root/client/macrowindow.cc
diff options
context:
space:
mode:
authordeva <deva>2008-08-19 09:28:09 +0000
committerdeva <deva>2008-08-19 09:28:09 +0000
commit5c102fdd1e6825a77bb9d7a69e268868d7f5398e (patch)
treedc37b25e6ad6045e91cab4e35f5d154a07defe26 /client/macrowindow.cc
parent26a6b739a38e928d005ac689e693a4d4dd7dc3ea (diff)
Bugfix. Shared connection didn't work with the continue action.
Diffstat (limited to 'client/macrowindow.cc')
-rw-r--r--client/macrowindow.cc12
1 files changed, 9 insertions, 3 deletions
diff --git a/client/macrowindow.cc b/client/macrowindow.cc
index e3d4846..abd615c 100644
--- a/client/macrowindow.cc
+++ b/client/macrowindow.cc
@@ -128,8 +128,6 @@ bool MacroWindow::doCommit()
// If all entries passed validation, continue commit
if(faulty == 0) {
- printf("MacroWindow -> committing...\n");
-
Global::netcom->send(widgets, macro, version);
return true;
@@ -182,7 +180,15 @@ void MacroWindow::cont(QString name)
i++;
}
if(doCommit()) {
- new_macro("FIXME", macro);
+
+ // FIXME: Hack to prevent XML clotching.
+ // The server could not differentiate the commit and the request.
+ delete Global::netcom;
+ Global::netcom = new NetCom(host, port, user, cpr);
+
+
+ // TODO: Where to get the course var??
+ new_macro("example", macro);
close();
} else {
QMessageBox::critical(NULL, "Fejl",