mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-26 07:59:35 -05:00
Merge remote-tracking branch 'upstream/master' into v0.6-BugFixing_30
This commit is contained in:
commit
2a1991fe85
@ -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);
|
||||||
|
|
||||||
return (ord==Qt::AscendingOrder)?(fi1.transfered<fi2.transfered):(fi1.transfered>fi2.transfered);
|
if(r1 && r2)
|
||||||
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user