[SCM] ktp-common-internals packaging branch, master, updated. debian/15.12.1-2-1839-gf0635e9
Maximiliano Curia
maxy at moszumanska.debian.org
Mon May 9 09:05:18 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-common-internals.git;a=commitdiff;h=fad2cd7
The following commit has been merged in the master branch:
commit fad2cd7af00bd4c09aa4a14f103bc150e7240954
Author: George Kiagiadakis <kiagiadakis.george at gmail.com>
Date: Wed Jul 11 16:52:05 2012 +0300
AddContactDialog: kDebug++
---
KTp/Widgets/add-contact-dialog.cpp | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/KTp/Widgets/add-contact-dialog.cpp b/KTp/Widgets/add-contact-dialog.cpp
index 6c82bcf..8922736 100644
--- a/KTp/Widgets/add-contact-dialog.cpp
+++ b/KTp/Widgets/add-contact-dialog.cpp
@@ -126,9 +126,12 @@ void AddContactDialog::accept()
KMessageBox::error(this, i18n("You did not specify the name of the contact to add"));
} else {
QStringList identifiers = QStringList() << d->ui->screenNameLineEdit->text();
+ kDebug() << "Requesting contacts for identifiers:" << identifiers;
+
Tp::PendingContacts *pendingContacts = account->connection()->contactManager()->contactsForIdentifiers(identifiers);
connect(pendingContacts, SIGNAL(finished(Tp::PendingOperation*)),
this, SLOT(_k_onContactsForIdentifiersFinished(Tp::PendingOperation*)));
+
setInProgress(true);
}
}
@@ -144,11 +147,13 @@ void AddContactDialog::closeEvent(QCloseEvent *e)
void AddContactDialog::_k_onContactsForIdentifiersFinished(Tp::PendingOperation *op)
{
if (op->isError()) {
- kDebug() << "Failed to retrieve a contact for the given identifier"
- << op->errorName() << op->errorMessage();
+ kWarning() << "Failed to retrieve a contact for the given identifier"
+ << op->errorName() << op->errorMessage();
KMessageBox::error(this, i18n("Failed to construct a contact with the given name"));
setInProgress(false);
} else {
+ kDebug() << "Requesting presence subscription";
+
Tp::PendingContacts *pc = qobject_cast<Tp::PendingContacts*>(op);
connect(pc->manager()->requestPresenceSubscription(pc->contacts()),
SIGNAL(finished(Tp::PendingOperation*)),
@@ -159,8 +164,8 @@ void AddContactDialog::_k_onContactsForIdentifiersFinished(Tp::PendingOperation
void AddContactDialog::_k_onRequestPresenceSubscriptionFinished(Tp::PendingOperation *op)
{
if (op->isError()) {
- kDebug() << "Failed to request presence subscription"
- << op->errorName() << op->errorMessage();
+ kWarning() << "Failed to request presence subscription"
+ << op->errorName() << op->errorMessage();
KMessageBox::error(this, i18n("Failed to request presence subscription from the requested contact"));
setInProgress(false);
} else {
--
ktp-common-internals packaging
More information about the pkg-kde-commits
mailing list