summaryrefslogtreecommitdiff
path: root/client/netcom.cc
diff options
context:
space:
mode:
authordeva <deva>2010-08-13 11:56:34 +0000
committerdeva <deva>2010-08-13 11:56:34 +0000
commitc58541468c5477323e35837a8f0aeaf41e5a0794 (patch)
tree4a215de3b61bf3a521edf2e6f67f00c3731b6dc7 /client/netcom.cc
parent51122d8689f6fbb1061ee0b19f885ad8851dfd50 (diff)
Fix one too many resets of the LUA stack.
Diffstat (limited to 'client/netcom.cc')
-rw-r--r--client/netcom.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/client/netcom.cc b/client/netcom.cc
index a606c62..02c5704 100644
--- a/client/netcom.cc
+++ b/client/netcom.cc
@@ -48,8 +48,8 @@
#endif
#endif
-#define DEBUG(fmt...) printf(fmt)
-//#define DEBUG(ftm...)
+//#define DEBUG(fmt...) printf(fmt)
+#define DEBUG(ftm...)
NetCom::NetCom(QString host, quint16 port)
{
@@ -191,10 +191,11 @@ QDomDocument NetCom::send(QVector< Widget* > widgets, QString templ,
// Iterate the different entries, and append their results to
// the commit string
QVector< Widget* >::iterator i = widgets.begin();
- while (i != widgets.end()) {
+ while(i != widgets.end()) {
+ DEBUG("W = ");
if(*i) {
Widget* w = *i;
- DEBUG("W: %s: %s\n", w->name().toStdString().c_str(),
+ DEBUG("name: %s val: %s", w->name().toStdString().c_str(),
w->value().toStdString().c_str());
if(w->enabled() && w->name() != "" && w->local() == false) {
QDomElement field_elem = doc.createElement("field");
@@ -203,6 +204,7 @@ QDomDocument NetCom::send(QVector< Widget* > widgets, QString templ,
commit_elem.appendChild(field_elem);
}
}
+ DEBUG("\n");
i++;
}