From 60b184377ee15e487e630a3cadc18f3c1b4312b3 Mon Sep 17 00:00:00 2001 From: GodKratos Date: Sun, 24 May 2020 01:13:49 +1200 Subject: [PATCH] add UUID validation check Co-authored-by: VolcaEM <63682805+VolcaEM@users.noreply.github.com> --- src/yuzu/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 62c1f91612..c370bbd7a9 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -141,7 +141,7 @@ QString GetAccountUsername() { const QString nouser = QString::fromStdString("No User"); Service::Account::ProfileManager manager; const auto current_user = manager.GetUser(Settings::values.current_user); - if (!current_user.has_value()) { + if (!current_user.has_value() || (current_user == Common::UUID{})) { return nouser; } Service::Account::ProfileBase profile;