mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Merge pull request #8759 from mike0609king/issue8704
fix(folderstatusmodel): 32 bit int overflow in current item progress fixed
This commit is contained in:
commit
28347fe650
@ -1017,10 +1017,10 @@ void FolderStatusModel::slotSetProgress(const ProgressInfo &progress)
|
||||
// find the single item to display: This is going to be the bigger item, or the last completed
|
||||
// item if no items are in progress.
|
||||
auto curItem = progress._lastCompletedItem;
|
||||
auto curItemProgress = -1; // -1 means finished
|
||||
auto biggerItemSize = 0;
|
||||
auto estimatedUpBw = 0;
|
||||
auto estimatedDownBw = 0;
|
||||
qint64 curItemProgress = -1; // -1 means finished
|
||||
qint64 biggerItemSize = 0;
|
||||
qint64 estimatedUpBw = 0;
|
||||
qint64 estimatedDownBw = 0;
|
||||
QStringList filenamesList;
|
||||
for (const auto &syncFile : progress._currentItems) {
|
||||
if (curItemProgress == -1 || (ProgressInfo::isSizeDependent(syncFile._item)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user