Skip to content

Commit

Permalink
Make non progress reporting tasks have undefined bars instead of 0%
Browse files Browse the repository at this point in the history
  • Loading branch information
mbernasocchi authored and nyalldawson committed Jun 21, 2018
1 parent 6a6a8dd commit df56fdc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/qgstaskmanagerwidget.cpp
Expand Up @@ -78,6 +78,7 @@ void QgsTaskManagerWidget::modelRowsInserted( const QModelIndex &, int start, in

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

0 comments on commit df56fdc

Please sign in to comment.