[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.4/kdelibs/kio/kio
From: David Faure <faure () kde ! org>
Date: 2010-02-02 22:48:14
Message-ID: 1265150894.084084.13137.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1084346 by dfaure:
Preserve modification time when moving files [and when the kioslave's put() supports \
it, like kio_sftp, but unlike kio_fish] This was already working for copying, but not \
for moving (across protocols). Fixed for: 4.4.0, hopefully
CCBUG: 55804
M +4 -0 copyjob.cpp
--- branches/KDE/4.4/kdelibs/kio/kio/copyjob.cpp #1084345:1084346
@@ -1460,6 +1460,10 @@
JobFlags flags = bOverwrite ? Overwrite : DefaultFlags;
KIO::FileCopyJob * moveJob = KIO::file_move( uSource, uDest, \
(*it).permissions, flags | HideProgressInfo/*no GUI*/ ); moveJob->setSourceSize( \
(*it).size ); + if ((*it).mtime != -1) {
+ QDateTime dt; dt.setTime_t( (*it).mtime );
+ moveJob->setModificationTime( dt ); // #55804
+ }
newjob = moveJob;
//kDebug(7007) << "Moving" << uSource << "to" << uDest;
//emit moving( this, uSource, uDest );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic