diff --git a/libretroshare/src/ft/ftcontroller.cc b/libretroshare/src/ft/ftcontroller.cc index 45b41b079..35e155366 100644 --- a/libretroshare/src/ft/ftcontroller.cc +++ b/libretroshare/src/ft/ftcontroller.cc @@ -1684,6 +1684,7 @@ bool ftController::FileDetails(const std::string &hash, FileInfo &info) /* extract details */ info.hash = hash; info.fname = it->second->mName; + info.lastTS = it->second->mCreator->lastRecvTimeStamp(); info.storage_permission_flags.clear() ; info.transfer_info_flags = it->second->mFlags ; info.priority = SPEED_NORMAL ; diff --git a/retroshare-gui/src/gui/FileTransfer/TransfersDialog.cpp b/retroshare-gui/src/gui/FileTransfer/TransfersDialog.cpp index 2805874f5..f85b3d4c2 100644 --- a/retroshare-gui/src/gui/FileTransfer/TransfersDialog.cpp +++ b/retroshare-gui/src/gui/FileTransfer/TransfersDialog.cpp @@ -937,21 +937,8 @@ int TransfersDialog::addItem(int row, const FileInfo &fileInfo, const std::map::max(); + qint64 qi64LastDL = fileInfo.lastTS ; //std::numeric_limits::max(); - { - QFileInfo file; - - if (fileInfo.downloadStatus == FT_STATE_COMPLETE) { - file = QFileInfo(QString::fromUtf8(fileInfo.path.c_str()), QString::fromUtf8(fileInfo.fname.c_str())); - } else { - file = QFileInfo(QString::fromUtf8(rsFiles->getPartialsDirectory().c_str()), QString::fromUtf8(fileInfo.hash.c_str())); - } - /*Get Last Access on File */ - if (file.exists()) { - qi64LastDL = file.lastModified().toTime_t(); - } - } QString strPath = QString::fromUtf8(fileInfo.path.c_str()); QString strPathAfterDL = strPath; strPathAfterDL.replace(QString::fromUtf8(rsFiles->getDownloadDirectory().c_str()),"");