Commit 42454f30 authored by Andreas Traczyk's avatar Andreas Traczyk

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

Change-Id: I5fa1025395431a2e628e6c42063848208b6ce491
parent 3b9b0fa1
......@@ -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())
//set default ringtone
auto confProps = LRCInstance::accountModel().getAccountConfig(accountId);
confProps.Ringtone.ringtonePath = Utils::GetRingtonePath().toStdString();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment