add UUID validation check

Co-authored-by: VolcaEM <63682805+VolcaEM@users.noreply.github.com>
This commit is contained in:
GodKratos
2020-05-24 01:13:49 +12:00
committed by GitHub
parent 7341257fc4
commit 60b184377e

View File

@@ -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;