Skip to content

Commit df56fdc

Browse files
mbernasocchinyalldawson
authored andcommittedJun 21, 2018
Make non progress reporting tasks have undefined bars instead of 0%
1 parent 6a6a8dd commit df56fdc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/gui/qgstaskmanagerwidget.cpp‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ void QgsTaskManagerWidget::modelRowsInserted( const QModelIndex &, int start, in
7878

7979
QProgressBar *progressBar = new QProgressBar();
8080
progressBar->setAutoFillBackground( true );
81+
progressBar->setRange(0, 0);
8182
connect( task, &QgsTask::progressChanged, progressBar, [progressBar]( double progress )
8283
{
8384
//until first progress report, we show a progress bar of interderminant length

0 commit comments

Comments
 (0)
Please sign in to comment.