[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kio-stash] src/ioslave: Disabled mtp copying for now
From:       arnav dhamija <arnav.dhamija () gmail ! com>
Date:       2016-09-11 18:24:12
Message-ID: E1bj9QK-000600-Fz () code ! kde ! org
[Download RAW message or body]

Git commit f0c2b306e2c7010c9740610a1aaa320f4a0a0a92 by arnav dhamija.
Committed on 11/09/2016 at 18:23.
Pushed by arnavdhamija into branch 'master'.

Disabled mtp copying for now

M  +2    -0    src/ioslave/ioslave.cpp

http://commits.kde.org/kio-stash/f0c2b306e2c7010c9740610a1aaa320f4a0a0a92

diff --git a/src/ioslave/ioslave.cpp b/src/ioslave/ioslave.cpp
index 4a03a3a..dfc0346 100644
--- a/src/ioslave/ioslave.cpp
+++ b/src/ioslave/ioslave.cpp
@@ -349,6 +349,8 @@ void FileStash::copy(const QUrl &src, const QUrl &dest, int permissions, KIO::Jo
             error(KIO::ERR_SLAVE_DEFINED, QString("Could not copy."));
         }
         return;
+    } else if (dest.scheme() == "mtp") {
+        error(KIO::ERR_SLAVE_DEFINED, QString("Copying to mtp slaves is still under development!"));
     } else {
         KIO::ForwardingSlaveBase::copy(item.targetUrl(), newDestPath, permissions, flags);
     }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic