mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-27 07:41:08 -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
1 changed files with 8 additions and 0 deletions
|
@ -661,8 +661,16 @@ public:
|
||||||
endRemoveRows();
|
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.
|
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.
|
// This is apparently not needed.
|
||||||
//
|
//
|
||||||
// if(!mDownloads.empty())
|
// if(!mDownloads.empty())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue