Fix another clear porting bug in ForwardingSlaveBase
authorDavid Faure <faure@kde.org>
Sun, 1 Jan 2017 12:38:30 +0000 (13:38 +0100)
committerMaximiliano Curia <maxy@debian.org>
Wed, 5 Apr 2017 08:10:59 +0000 (09:10 +0100)
Gbp-Pq: Name Fix-another-clear-porting-bug-in-ForwardingSlaveBase.patch

src/core/forwardingslavebase.cpp

index 0a16c2ef5c476617c151e77d7136590af4d98617..12fa5f54290f425949bac2a4ae9a097bd990595d 100644 (file)
@@ -321,9 +321,7 @@ void ForwardingSlaveBase::copy(const QUrl &src, const QUrl &dest,
     if (!d->internalRewriteUrl(src, new_src)) {
         error(KIO::ERR_DOES_NOT_EXIST, src.toDisplayString());
     } else if (d->internalRewriteUrl(dest, new_dest)) {
-        // Are you sure you want to display here a ProgressInfo ???
-        KIO::Job *job = KIO::file_copy(new_src, new_dest, permissions,
-                                       (flags & (~Overwrite) & (~HideProgressInfo)));
+        KIO::Job *job = KIO::file_copy(new_src, new_dest, permissions, flags | HideProgressInfo);
         d->connectJob(job);
 
         d->eventLoop.exec();