Skip to content
Snippets Groups Projects
Commit 9287c2e8 authored by Jonathan Ehret's avatar Jonathan Ehret
Browse files

force an custom ID to be non-empty

closes #109
parent 41882442
No related branches found
No related tags found
No related merge requests found
...@@ -302,6 +302,10 @@ void USFGameInstance::PrepareWithStudySetup(ASFStudySetup* Setup) ...@@ -302,6 +302,10 @@ void USFGameInstance::PrepareWithStudySetup(ASFStudySetup* Setup)
{ {
FSFUtils::OpenMessageBox("Participant ID \"" + IDGiven + "\"was already used, you have to choose another one!"); 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 else
{ {
ParticipantID = IDGiven; ParticipantID = IDGiven;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment