Skip to content

Commit 6a3ff6f

Browse files
committed
Fix Qt5 build
1 parent 9014788 commit 6a3ff6f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/libsync/propagateuploadtus.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,11 @@ SimpleNetworkJob *PropagateUploadFileTUS::makeCreationWithUploadJob(QNetworkRequ
8686
addMetaData(QByteArrayLiteral("filename"), propagator()->fullRemotePath(_item->_file).toUtf8());
8787
// in difference to the old protocol the algrithm and the value are space seperated
8888
addMetaData(QByteArrayLiteral("checksum"), CheckSums::toQString(checksumHeader.type()).toUtf8() + ' ' + checksumHeader.checksum());
89+
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
90+
addMetaData(QByteArrayLiteral("mtime"), QByteArray::number(static_cast<qint64>(_item->_modtime)));
91+
#else
8992
addMetaData(QByteArrayLiteral("mtime"), QByteArray::number(_item->_modtime));
93+
#endif
9094

9195
request->setRawHeader(QByteArrayLiteral("Upload-Metadata"), encodedMetaData.join(','));
9296
request->setRawHeader(QByteArrayLiteral("Upload-Length"), QByteArray::number(_item->_size));

0 commit comments

Comments
 (0)