telepathy-qt: BaseConnectionRequestsInterface: Fixed createChannel() argument checks.
David Edmundson
davidedmundson at kemper.freedesktop.org
Mon Aug 18 07:42:02 PDT 2014
Module: telepathy-qt
Branch: master
Commit: 12e5f4d55e4a22a97563b4e9747645aee5a79756
URL: http://cgit.freedesktop.org/telepathy/telepathy-qt/commit/?id=12e5f4d55e4a22a97563b4e9747645aee5a79756
Author: Alexandr Akulich <akulichalexander at gmail.com>
Date: Mon Aug 18 00:56:18 2014 +0600
BaseConnectionRequestsInterface: Fixed createChannel() argument checks.
---
TelepathyQt/base-connection.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/TelepathyQt/base-connection.cpp b/TelepathyQt/base-connection.cpp
index 8684612..c40e5bf 100644
--- a/TelepathyQt/base-connection.cpp
+++ b/TelepathyQt/base-connection.cpp
@@ -795,8 +795,8 @@ void BaseConnectionRequestsInterface::createChannel(const QVariantMap &request,
QVariantMap &details, DBusError *error)
{
if (!request.contains(TP_QT_IFACE_CHANNEL + QLatin1String(".ChannelType"))
- || !request.contains(TP_QT_IFACE_CHANNEL + QLatin1String(".ChannelType"))
- || !request.contains(TP_QT_IFACE_CHANNEL + QLatin1String(".ChannelType"))) {
+ || !request.contains(TP_QT_IFACE_CHANNEL + QLatin1String(".TargetHandleType"))
+ || !request.contains(TP_QT_IFACE_CHANNEL + QLatin1String(".TargetHandle"))) {
error->set(TP_QT_ERROR_INVALID_ARGUMENT, QLatin1String("Missing parameters"));
return;
}
More information about the telepathy-commits
mailing list