Skip to content
Snippets Groups Projects
Commit 42454f30 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

wizard(JAMS): don't navigate when and invalid account is added

Change-Id: I5fa1025395431a2e628e6c42063848208b6ce491
parent 3b9b0fa1
No related branches found
No related tags found
No related merge requests found
......@@ -557,6 +557,8 @@ NewWizardWidget::createAccount()
if (isConnectingToManager) {
Utils::oneShotConnect(&LRCInstance::accountModel(), &lrc::api::NewAccountModel::accountAdded,
[this](const std::string& accountId) {
if (!LRCInstance::accountModel().getAccountList().size())
return;
//set default ringtone
auto confProps = LRCInstance::accountModel().getAccountConfig(accountId);
confProps.Ringtone.ringtonePath = Utils::GetRingtonePath().toStdString();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment