Skip to content

Commit

Permalink
Merge pull request #1692 from Trial97/msa_account
Browse files Browse the repository at this point in the history
Fix wrong account selection
  • Loading branch information
Trial97 committed Oct 19, 2023
2 parents 9a0cfbc + dc74ea7 commit 7ad48d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion launcher/LaunchController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ void LaunchController::decideAccount()
// Select the account to use. If the instance has a specific account set, that will be used. Otherwise, the default account will be used
auto instanceAccountId = m_instance->settings()->get("InstanceAccountId").toString();
auto instanceAccountIndex = accounts->findAccountByProfileId(instanceAccountId);
if (instanceAccountIndex == -1) {
if (instanceAccountIndex == -1 || instanceAccountId.isEmpty()) {
m_accountToUse = accounts->defaultAccount();
} else {
m_accountToUse = accounts->at(instanceAccountIndex);
Expand Down

0 comments on commit 7ad48d8

Please sign in to comment.