From 88d7ee04e122b6c1d36f615520f0fc55dee1a064 Mon Sep 17 00:00:00 2001 From: Andrea Giudiceandrea Date: Wed, 1 Jan 2025 12:49:57 +0100 Subject: [PATCH] [gui] Fix progress bar in status bar --- src/gui/qgstaskmanagerwidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/qgstaskmanagerwidget.cpp b/src/gui/qgstaskmanagerwidget.cpp index 90032b693154..2f5249e7db38 100644 --- a/src/gui/qgstaskmanagerwidget.cpp +++ b/src/gui/qgstaskmanagerwidget.cpp @@ -87,7 +87,7 @@ void QgsTaskManagerWidget::modelRowsInserted( const QModelIndex &, int start, in if ( progress > 0 ) { progressBar->setMaximum( 100 ); - progressBar->setValue( static_cast( std::round( progress ) ) ); + progressBar->setValue( static_cast( progress ) ); } else progressBar->setMaximum( 0 ); @@ -641,7 +641,7 @@ void QgsTaskManagerStatusBarWidget::toggleDisplay() void QgsTaskManagerStatusBarWidget::overallProgressChanged( double progress ) { - mProgressBar->setValue( static_cast( std::round( progress ) ) ); + mProgressBar->setValue( static_cast( progress ) ); if ( qgsDoubleNear( progress, 0.0 ) ) mProgressBar->setMaximum( 0 ); else if ( mProgressBar->maximum() == 0 )