[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:06:35 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-common-internals.git;a=commitdiff;h=0ac6d60

The following commit has been merged in the master branch:
commit 0ac6d6013767b8905ef96231ef277f6ee53e5f3d
Author: Andrea Scarpino <andrea at archlinux.org>
Date:   Wed Mar 13 22:11:33 2013 +0059

    Check that parameters are valid
---
 KTp/actions.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/KTp/actions.cpp b/KTp/actions.cpp
index 0ace50f..df21dff 100644
--- a/KTp/actions.cpp
+++ b/KTp/actions.cpp
@@ -146,6 +146,12 @@ Tp::PendingOperation* Actions::startFileTransfer(const Tp::AccountPtr &account,
                                                  const Tp::ContactPtr &contact,
                                                  const QUrl &url)
 {
+    if (account.isNull() || contact.isNull() || url.isEmpty()) {
+        kWarning() << "Parameters invalid";
+    }
+
+    kDebug() << "Requesting file transfer of" << url.toLocalFile() << "to" << contact->id();
+
     Tp::PendingOperation *ret = 0;
     if (url.isLocalFile()) {
         ret = startFileTransfer(account, contact, url.toLocalFile());

-- 
ktp-common-internals packaging



More information about the pkg-kde-commits mailing list