[SCM] ktp-kded-integration-module packaging branch, master, updated. debian/15.12.1-2-382-gbd961c2
Maximiliano Curia
maxy at moszumanska.debian.org
Sat May 28 00:13:13 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-kded-module.git;a=commitdiff;h=a8657b5
The following commit has been merged in the master branch:
commit a8657b5ccc0d2b30c84528f8b1652688592b3c89
Author: Dario Freddi <dario.freddi at collabora.com>
Date: Fri Nov 25 23:16:53 2011 +0100
Use ErrorDictionary to display errors
---
contact-request-handler.cpp | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/contact-request-handler.cpp b/contact-request-handler.cpp
index 9d4bb9d..89302ae 100644
--- a/contact-request-handler.cpp
+++ b/contact-request-handler.cpp
@@ -25,6 +25,8 @@
#include <TelepathyQt4/PendingOperation>
#include <TelepathyQt4/Account>
+#include <KTelepathy/error-dictionary.h>
+
#include <QtCore/QFutureWatcher>
#include <KDebug>
@@ -167,7 +169,8 @@ void ContactRequestHandler::onFinalizeSubscriptionFinished(Tp::PendingOperation
m_notifierItem.data()->showMessage(i18n("Error adding contact"),
i18n("%1 has been added successfully to your contact list, "
"but might be unable to see your presence. Error details: %2",
- contact->alias(), op->errorMessage()), QLatin1String("dialog-error"));
+ contact->alias(), KTp::ErrorDictionary::displayVerboseErrorMessage(op->errorName())),
+ QLatin1String("dialog-error"));
} else {
// Yeah. All fine, so don't notify
}
@@ -226,7 +229,8 @@ void ContactRequestHandler::onAuthorizePresencePublicationFinished(Tp::PendingOp
// ARGH
m_notifierItem.data()->showMessage(i18n("Error accepting contact request"),
i18n("There was an error while accepting the request: %1",
- op->errorMessage()), QLatin1String("dialog-error"));
+ KTp::ErrorDictionary::displayVerboseErrorMessage(op->errorName())),
+ QLatin1String("dialog-error"));
// Re-enable the action
m_menuItems.value(contact->id())->setEnabled(true);
@@ -275,7 +279,8 @@ void ContactRequestHandler::onRemovePresencePublicationFinished(Tp::PendingOpera
// ARGH
m_notifierItem.data()->showMessage(i18n("Error denying contact request"),
i18n("There was an error while denying the request: %1",
- op->errorMessage()), QLatin1String("dialog-error"));
+ KTp::ErrorDictionary::displayVerboseErrorMessage(op->errorName())),
+ QLatin1String("dialog-error"));
// Re-enable the action
m_menuItems.value(contact->id())->setEnabled(true);
--
ktp-kded-integration-module packaging
More information about the pkg-kde-commits
mailing list