summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/praxisd.cc14
1 files changed, 11 insertions, 3 deletions
diff --git a/client/praxisd.cc b/client/praxisd.cc
index a77e287..001eb90 100644
--- a/client/praxisd.cc
+++ b/client/praxisd.cc
@@ -297,6 +297,9 @@ PraxisdSync::PraxisdSync(QString host, unsigned short int port)
this->port = port;
this->running = true;
+ error = false;
+ errorStr = "";
+
start();
}
@@ -367,7 +370,7 @@ QString PraxisdSync::errorString()
void PraxisdSync::networkError(QString err)
{
error = true;
- errorStr = err;
+ errorStr = "Network error: " + err;
rsem.release();
quit();
}
@@ -411,8 +414,13 @@ CaveVector PraxisdSync::diverse_get_cave(QString sogenr)
Patient PraxisdSync::patient_get_by_cpr(QString cpr)
{
- cpr = "";
- return Patient();
+ request_type = Praxisd::patient;
+ request_cpr = cpr;
+
+ wsem.release();
+ rsem.acquire();
+
+ return patient;
}
DokMenuVector PraxisdSync::dokmenu_get_all_by_cpr(QString cpr)