From 9287c2e841ab994f35781a70b9c1055cec063850 Mon Sep 17 00:00:00 2001 From: jehret <ehret@vr.rwth-aachen.de> Date: Fri, 19 Jan 2024 13:19:51 +0100 Subject: [PATCH] force an custom ID to be non-empty closes #109 --- Source/StudyFrameworkPlugin/Private/SFGameInstance.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/StudyFrameworkPlugin/Private/SFGameInstance.cpp b/Source/StudyFrameworkPlugin/Private/SFGameInstance.cpp index cd15145..dd5dc3c 100644 --- a/Source/StudyFrameworkPlugin/Private/SFGameInstance.cpp +++ b/Source/StudyFrameworkPlugin/Private/SFGameInstance.cpp @@ -302,6 +302,10 @@ void USFGameInstance::PrepareWithStudySetup(ASFStudySetup* Setup) { FSFUtils::OpenMessageBox("Participant ID \"" + IDGiven + "\"was already used, you have to choose another one!"); } + else if (IDGiven.IsEmpty()) + { + FSFUtils::OpenMessageBox("Participant ID given is empty, you have to choose one!"); + } else { ParticipantID = IDGiven; -- GitLab