From f570f3911f126f94653a5f81e64acd5954e4250d Mon Sep 17 00:00:00 2001 From: IndrekV Date: Tue, 20 Feb 2018 17:48:59 +1000 Subject: [PATCH] Fix for project name exists check when also adding client (lib) --- src/context.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/context.cc b/src/context.cc index e7ee4d8c05..cc98b2127e 100644 --- a/src/context.cc +++ b/src/context.cc @@ -3561,11 +3561,11 @@ Project *Context::CreateProject( Project *p = *it; bool clientIsSame = false; - if (!client_guid.empty() && !p->ClientGUID().empty()) { - clientIsSame = client_guid == p->ClientGUID(); - } - - if (!clientIsSame) { + if (!client_guid.empty()) { + if (!p->ClientGUID().empty()) { + clientIsSame = client_guid == p->ClientGUID(); + } + } else { clientIsSame = client_id == p->CID(); }