mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed bug in FT causing transfer lines to only update when the mouse moves over the widget
This commit is contained in:
parent
91634ba6c1
commit
0e6d27ad7a
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user