fixed bug in FT causing transfer lines to only update when the mouse moves over the widget

This commit is contained in:
csoler 2018-03-13 20:25:38 +01:00
parent 91634ba6c1
commit 0e6d27ad7a
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -661,8 +661,16 @@ public:
endRemoveRows();
}
uint32_t old_status = mDownloads[i].downloadStatus ;
mDownloads[i] = fileInfo ; // ... because insertRows() calls rowCount() which needs to be consistent with the *old* number of rows.
if(fileInfo.downloadStatus == FT_STATE_DOWNLOADING || old_status != fileInfo.downloadStatus)
{
QModelIndex topLeft = createIndex(i,0), bottomRight = createIndex(i, COLUMN_COUNT-1);
emit dataChanged(topLeft, bottomRight);
}
// This is apparently not needed.
//
// if(!mDownloads.empty())