From 5f27ae9498e3269681138e89f657ce1f159f67b4 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Tue, 28 Jan 2025 14:54:36 +1000 Subject: [PATCH] Fix logic in pdal indexing task relating to progress updates --- src/providers/pdal/qgspdalindexingtask.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/providers/pdal/qgspdalindexingtask.cpp b/src/providers/pdal/qgspdalindexingtask.cpp index d1d5e9b5ad9b..7dc18a14141e 100644 --- a/src/providers/pdal/qgspdalindexingtask.cpp +++ b/src/providers/pdal/qgspdalindexingtask.cpp @@ -88,7 +88,7 @@ bool QgsPdalIndexingTask::runUntwine() const std::vector files = { mFile.toStdString() }; untwineProcess.start( files, mOutputPath.toStdString(), options ); - const int lastPercent = 0; + int lastPercent = 0; while ( true ) { QThread::msleep( 100 ); @@ -103,6 +103,7 @@ bool QgsPdalIndexingTask::runUntwine() } #endif setProgress( percent ); + lastPercent = percent; } if ( isCanceled() )