From 0e6d27ad7a0ab3a4370db6e7057d6d651a7e10c3 Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 13 Mar 2018 20:25:38 +0100 Subject: [PATCH] fixed bug in FT causing transfer lines to only update when the mouse moves over the widget --- retroshare-gui/src/gui/FileTransfer/TransfersDialog.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/retroshare-gui/src/gui/FileTransfer/TransfersDialog.cpp b/retroshare-gui/src/gui/FileTransfer/TransfersDialog.cpp index bbcb29e38..0ecc55ac2 100644 --- a/retroshare-gui/src/gui/FileTransfer/TransfersDialog.cpp +++ b/retroshare-gui/src/gui/FileTransfer/TransfersDialog.cpp @@ -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())