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 +++++- client/client.pro | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'client') 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) diff --git a/client/client.pro b/client/client.pro index 2013cd0..8989180 100644 --- a/client/client.pro +++ b/client/client.pro @@ -3,7 +3,7 @@ ###################################################################### TEMPLATE = app -TARGET = +TARGET = pracro DEPENDPATH += . _old widgets INCLUDEPATH += . _old widgets -- cgit v1.2.3