[Backport release-11.x] Do not open account select dialog if there are no accounts (#5538)

This commit is contained in:
Alexandru Ionut Tripon 2026-05-12 22:12:44 +03:00 committed by GitHub
commit 6392d89c33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -109,7 +109,7 @@ void LaunchController::decideAccount()
}
}
if (!m_accountToUse) {
if (!m_accountToUse && accounts->anyAccountIsValid()) {
// If no default account is set, ask the user which one to use.
ProfileSelectDialog selectDialog(tr("Which account would you like to use?"), ProfileSelectDialog::GlobalDefaultCheckbox,
m_parentWidget);