Fixed potential exception due to stale profile UUID

`SettingsProfilesInfo::profiles` is not updated in bg if any of the profiles assigned to the user change, but `SettingsProfilesInfo::profiles_with_implicit` is.

Update of #42641
kudos @tavplubix  3d0c07ac5b (r1406196201)
This commit is contained in:
Vasily Nemkov 2023-11-27 15:10:07 +01:00 committed by GitHub
parent 4abb13c795
commit 174607c6bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@ Strings SettingsProfilesInfo::getProfileNames() const
{
Strings result;
result.reserve(profiles.size());
for (const auto & profile_id : profiles)
for (const auto & profile_id : profiles_with_implicit)
{
const auto p = names_of_profiles.find(profile_id);
if (p != names_of_profiles.end())