D21955: [copyjob] Only set modification time if the kio-slave provided it

Wolfgang Bauer noreply at phabricator.kde.org
Fri Jun 21 12:48:46 BST 2019


wbauer marked an inline comment as done.
wbauer added inline comments.

INLINE COMMENTS

> wbauer wrote in copyjob.cpp:1709
> I don't think mtime would be null or invalid in this case, but I'll check.

Nope.
I added this debug line:

  qDebug() << "mtime=" << (*it).mtime << "null:" << (*it).mtime.isNull() << "valid:" << (*it).mtime.isValid();

The output in the "broken" case, i.e. when it was set to -1:

  mtime= QDateTime(1969-12-31 23:59:59.000 UTC Qt::UTC) null: false valid: true

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D21955

To: wbauer, #frameworks, bruns, dfaure, ngraham
Cc: ngraham, kde-frameworks-devel, #dolphin, LeGast00n, michaelh, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190621/3d401cae/attachment.html>


More information about the Kde-frameworks-devel mailing list