Skip to content

Commit

Permalink
Fix logic in pdal indexing task relating to progress updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 28, 2025
1 parent 14b2d05 commit 5f27ae9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/providers/pdal/qgspdalindexingtask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ bool QgsPdalIndexingTask::runUntwine()

const std::vector<std::string> files = { mFile.toStdString() };
untwineProcess.start( files, mOutputPath.toStdString(), options );
const int lastPercent = 0;
int lastPercent = 0;
while ( true )
{
QThread::msleep( 100 );
Expand All @@ -103,6 +103,7 @@ bool QgsPdalIndexingTask::runUntwine()
}
#endif
setProgress( percent );
lastPercent = percent;
}

if ( isCanceled() )
Expand Down

0 comments on commit 5f27ae9

Please sign in to comment.