Blame SOURCES/0018-kio_obexftp-Fix-finished-called-twice-in-get.patch

a562b3
From fae9b31c270adfe867365b1908dc9888fdb00fd1 Mon Sep 17 00:00:00 2001
a562b3
From: David Rosca <nowrep@gmail.com>
a562b3
Date: Mon, 12 Jan 2015 15:04:40 +0100
a562b3
Subject: [PATCH 18/20] kio_obexftp: Fix finished() called twice in get()
a562b3
a562b3
This fixes eg. loading images from obexftp in gwenview
a562b3
---
a562b3
 src/kio/obexftp/kio_obexftp.cpp | 7 +------
a562b3
 1 file changed, 1 insertion(+), 6 deletions(-)
a562b3
a562b3
diff --git a/src/kio/obexftp/kio_obexftp.cpp b/src/kio/obexftp/kio_obexftp.cpp
a562b3
index 0783662..82ce5cd 100644
a562b3
--- a/src/kio/obexftp/kio_obexftp.cpp
a562b3
+++ b/src/kio/obexftp/kio_obexftp.cpp
a562b3
@@ -195,6 +195,7 @@ void KioFtp::copy(const KUrl &src, const KUrl &dest, int permissions, KIO::JobFl
a562b3
     kDebug() << "copy: " << src.url() << " to " << dest.url();
a562b3
 
a562b3
     copyHelper(src, dest);
a562b3
+    finished();
a562b3
 }
a562b3
 
a562b3
 void KioFtp::rename(const KUrl& src, const KUrl& dest, KIO::JobFlags flags)
a562b3
@@ -342,8 +343,6 @@ void KioFtp::copyWithinObexftp(const KUrl &src, const KUrl &dest)
a562b3
     if (!copyFile(src.path(), dest.path())) {
a562b3
         return;
a562b3
     }
a562b3
-
a562b3
-    finished();
a562b3
 }
a562b3
 
a562b3
 void KioFtp::copyFromObexftp(const KUrl& src, const KUrl& dest)
a562b3
@@ -362,8 +361,6 @@ void KioFtp::copyFromObexftp(const KUrl& src, const KUrl& dest)
a562b3
 
a562b3
     TransferFileJob *getFile = new TransferFileJob(dbusPath, this);
a562b3
     getFile->exec();
a562b3
-
a562b3
-    finished();
a562b3
 }
a562b3
 
a562b3
 void KioFtp::copyToObexftp(const KUrl& src, const KUrl& dest)
a562b3
@@ -382,8 +379,6 @@ void KioFtp::copyToObexftp(const KUrl& src, const KUrl& dest)
a562b3
 
a562b3
     TransferFileJob *putFile = new TransferFileJob(dbusPath, this);
a562b3
     putFile->exec();
a562b3
-
a562b3
-    finished();
a562b3
 }
a562b3
 
a562b3
 void KioFtp::statHelper(const KUrl& url)
a562b3
-- 
a562b3
2.1.0
a562b3