From c342f67900ef8828299cbed9965d5a860f139b7c Mon Sep 17 00:00:00 2001 From: senator Date: Tue, 18 Mar 2008 14:26:53 +0000 Subject: now exits on cancel, and also after commit --- client/builder.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'client/builder.cc') diff --git a/client/builder.cc b/client/builder.cc index af44fd8..426102b 100644 --- a/client/builder.cc +++ b/client/builder.cc @@ -171,7 +171,10 @@ void Builder::commit() SendRecieve macro_commit; macro_commit.makeConnection(&xml_result); // Recieve answer from server whether successful or not - QByteArray ba = macro_commit.getResult(); + //QByteArray ba = macro_commit.getResult(); + QString ba = macro_commit.getResult(); + printf("Server returned result: %s", ba.toStdString().c_str()); + exit(1); // Probably bad exit. Implemented for test version. } else { QMessageBox::critical(NULL, "Fejl", "Makroen er ikke udfyldt korrekt, prøv igen.\n" @@ -191,6 +194,7 @@ int ret = QMessageBox::warning(NULL, "Reset", void Builder::cancel() { printf("Builder -> cancelling...\n"); + exit(1); // Probably bad exit. Implemented for test version. } void Builder::cont(QString name) -- cgit v1.2.3