[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:59:21 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-accounts-kcm.git;a=commitdiff;h=602f06e
The following commit has been merged in the master branch:
commit 602f06ef30496fa5dfe6bd99a2de8207c196861a
Author: Florian Reinhard <florian.reinhard at googlemail.com>
Date: Tue Mar 1 22:09:35 2011 +0100
Listen to Tp::Account::removed().
If an Tp::Account gets removed for some external reason, AccountItem now emits removed() which triggers AccountsListModel::onAccountItemRemoved() and the account gets removed from the list.
Reviewed-by: David Edmundson <kde at davidedmundson.co.uk>
REVIEW: 100777
---
src/account-item.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/account-item.cpp b/src/account-item.cpp
index 2070979..1f8f193 100644
--- a/src/account-item.cpp
+++ b/src/account-item.cpp
@@ -52,6 +52,9 @@ AccountItem::AccountItem(const Tp::AccountPtr &account, AccountsListModel *paren
connect(m_account.data(),
SIGNAL(connectionStatusChanged(Tp::ConnectionStatus)),
SIGNAL(updated()));
+ connect(m_account.data(),
+ SIGNAL(removed()),
+ SIGNAL(removed()));
generateIcon();
}
@@ -163,8 +166,6 @@ void AccountItem::onAccountRemoved(Tp::PendingOperation *op)
<< op->errorMessage();
return;
}
-
- Q_EMIT removed();
}
void AccountItem::onTitleForCustomPages(QString mandatoryPage, QList<QString> optionalPage)
--
ktp-accounts-kcm packaging
More information about the pkg-kde-commits
mailing list