Merge remote-tracking branch 'upstream/master' into v0.6-BugFixing_30

This commit is contained in:
csoler 2023-06-04 16:48:42 +02:00
commit 2a1991fe85

View File

@ -342,10 +342,13 @@ public:
case RsGxsChannelPostFilesModel::COLUMN_FILES_FILE: case RsGxsChannelPostFilesModel::COLUMN_FILES_FILE:
{ {
FileInfo fi1,fi2; FileInfo fi1,fi2;
rsFiles->FileDetails(f1.mHash,RS_FILE_HINTS_DOWNLOAD,fi1); bool r1 = rsFiles->FileDetails(f1.mHash,RS_FILE_HINTS_DOWNLOAD,fi1);
rsFiles->FileDetails(f2.mHash,RS_FILE_HINTS_DOWNLOAD,fi2); bool r2 = rsFiles->FileDetails(f2.mHash,RS_FILE_HINTS_DOWNLOAD,fi2);
if(r1 && r2)
return (ord==Qt::AscendingOrder)?(fi1.transfered<fi2.transfered):(fi1.transfered>fi2.transfered); return (ord==Qt::AscendingOrder)?(fi1.transfered<fi2.transfered):(fi1.transfered>fi2.transfered);
else
return (ord==Qt::AscendingOrder)?(fi1.downloadStatus<fi2.downloadStatus):(fi1.downloadStatus>fi2.downloadStatus);
} }
} }