From f94242bcaa62f4547f0da6eaead83ca7431d6f8a Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage <emmanuel.lepage@savoirfairelinux.com> Date: Fri, 23 Sep 2011 15:24:07 -0400 Subject: [PATCH] Fix "unregistered account" bug (I hope so) --- kde/src/SFLPhoneView.cpp | 2 ++ kde/src/lib/AccountList.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/kde/src/SFLPhoneView.cpp b/kde/src/SFLPhoneView.cpp index b90591eff6..3cc2aebc93 100755 --- a/kde/src/SFLPhoneView.cpp +++ b/kde/src/SFLPhoneView.cpp @@ -98,6 +98,8 @@ SFLPhoneView::SFLPhoneView(QWidget *parent) this, SLOT(updateStatusMessage())); connect(CallView::getAccountList(), SIGNAL(accountListUpdated()), this, SLOT(updateWindowCallState())); + + CallView::getAccountList()->updateAccounts(); } diff --git a/kde/src/lib/AccountList.cpp b/kde/src/lib/AccountList.cpp index 9519faf9ca..22dd7a8f12 100644 --- a/kde/src/lib/AccountList.cpp +++ b/kde/src/lib/AccountList.cpp @@ -106,7 +106,7 @@ Account* AccountList::firstRegisteredAccount() const return current; } else { - qDebug() << "Account " << current->getAccountId() << " is not registered"; + qDebug() << "Account " << current->getAccountId() << " is not registered (" << current->getAccountDetail(ACCOUNT_STATUS) << ")"; } } return NULL; -- GitLab