[SCM] ktp-accounts-kcm packaging branch, master, updated. debian/15.12.1-1-1157-gc4589c5
Maximiliano Curia
maxy at moszumanska.debian.org
Fri May 27 23:57:09 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-accounts-kcm.git;a=commitdiff;h=91f6aef
The following commit has been merged in the master branch:
commit 91f6aef9eac4e1e2389e1bb9269f3e15132d198a
Author: George Goldberg <grundleborg at googlemail.com>
Date: Sat Feb 14 21:27:56 2009 +0000
Actually add the accounts to the model once we get them from the account manager.
svn path=/trunk/playground/network/telepathy-accounts-kcm/; revision=926224
---
src/accounts-list-model.cpp | 1 +
src/kcm-telepathy-accounts.cpp | 3 +--
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/accounts-list-model.cpp b/src/accounts-list-model.cpp
index 23fa6d2..2149bc8 100644
--- a/src/accounts-list-model.cpp
+++ b/src/accounts-list-model.cpp
@@ -52,6 +52,7 @@ QVariant AccountsListModel::data(const QModelIndex &index, int role) const
void AccountsListModel::addAccount(Telepathy::Client::Account *account)
{
+ kDebug() << "Creating a new AccountItem from account:" << account;
// Check if the account is already in the model.
bool found = false;
diff --git a/src/kcm-telepathy-accounts.cpp b/src/kcm-telepathy-accounts.cpp
index 308ea3b..7661c15 100644
--- a/src/kcm-telepathy-accounts.cpp
+++ b/src/kcm-telepathy-accounts.cpp
@@ -89,8 +89,7 @@ void KCMTelepathyAccounts::startAccountManagerFinished(Telepathy::Client::Pendin
QList<Telepathy::Client::Account*> accounts = m_accountManager->allAccounts();
foreach(Telepathy::Client::Account* account, accounts)
{
- // TODO: We should add them all to the model (which will create an
- // AccountItem for each of them).
+ m_accountsListModel->addAccount(account);
}
}
--
ktp-accounts-kcm packaging
More information about the pkg-kde-commits
mailing list