Trk: Setting correct date and time when closing remote file.

Reviewed-by: Friedemann Kleint
This commit is contained in:
Robert Loehning
2009-12-02 14:42:03 +01:00
parent 7057584f98
commit e494864b08
3 changed files with 19 additions and 1 deletions

View File

@@ -467,7 +467,7 @@ void Launcher::closeRemoteFile(bool failed)
{
QByteArray ba;
appendInt(&ba, d->m_copyState.copyFileHandle, TargetByteOrder);
appendInt(&ba, QDateTime::currentDateTime().toTime_t(), TargetByteOrder);
appendDateTime(&ba, QDateTime::currentDateTime(), TargetByteOrder);
d->m_device->sendTrkMessage(TrkCloseFile,
failed ? TrkCallback() : TrkCallback(this, &Launcher::handleFileCopied),
ba);