Skip to content

Commit

Permalink
fix: prevent progress bar delegate from overflowing (fix #3133)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed Apr 20, 2024
1 parent 7ef0fce commit 72352a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/src/progress-bar-delegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void ProgressBarDelegate::paint(QPainter *painter, const QStyleOptionViewItem &o

// Set the progress
const DownloadQueryGroup &download = qobject_cast<DownloadGroupTableModel*>(parent())->dataForRow(index.row());
progressBarOption.progress = download.progressVal;
progressBarOption.progress = qMin(download.progressVal, download.total);
progressBarOption.maximum = download.total;

// Draw the progress bar onto the view
Expand Down

0 comments on commit 72352a2

Please # to comment.