From faa91cd056352aaa426fd569f6e8d53d4d0be76c Mon Sep 17 00:00:00 2001
From: Lucio Zambon <lucio.zambon@elettra.eu>
Date: Tue, 29 Sep 2020 14:26:30 +0200
Subject: [PATCH] Update acs.cpp

---
 src/acs.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/acs.cpp b/src/acs.cpp
index ef9715e..509ac0b 100644
--- a/src/acs.cpp
+++ b/src/acs.cpp
@@ -69,6 +69,9 @@ void acs::web_read(char *url, const char *data) {
 		if (res == CURLE_OK && !web_data.compare("NOK")) {
 			QMessageBox::information(this, "REGISTRAZIONE MANCANTE", "ATTENZIONE, badge non presente nel registro elettronico degli accessi\nEffettuare al piu' presto la registrazione", QMessageBox::Ok);
 		}
+		else if (res != CURLE_OK || web_data.compare("OK")) {
+		    QMessageBox::information(this, "REGISTRAZIONE ACCESSO", "ATTENZIONE, non e' stato possibile contattare il registro elettronico degli accessi\nSi prega di verificare con cura che sia presente una registrazione", QMessageBox::Ok);
+		}
 		web_data.clear();
 		// clean escaped url string
 		curl_free(output);
-- 
GitLab