diff options
author | senator <senator> | 2008-03-18 14:26:53 +0000 |
---|---|---|
committer | senator <senator> | 2008-03-18 14:26:53 +0000 |
commit | c342f67900ef8828299cbed9965d5a860f139b7c (patch) | |
tree | c66b187e3854d47e60284777e60c3eaa59cf5edd /client | |
parent | d658d56eb7c00def8bbb8605c6259016979a47ba (diff) |
now exits on cancel, and also after commit
Diffstat (limited to 'client')
-rw-r--r-- | client/builder.cc | 6 | ||||
-rw-r--r-- | client/client.pro | 2 |
2 files changed, 6 insertions, 2 deletions
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 |