Progress: optionally call QApplication::processEvents on progress updates.

Fixes the missing updates of UI when running long tasks in main thread.
This commit is contained in:
Kristian Bendiksen
2024-09-09 10:16:49 +02:00
parent 9b5c5ae0d3
commit eb762fd122
3 changed files with 28 additions and 17 deletions

View File

@@ -174,7 +174,7 @@ bool RimWellPathCollection::loadDataAndUpdate()
return count;
};
caf::ProgressInfo progress( allWellPaths().size() + countWellLogs( allWellPaths() ) + 2, "Reading well paths from file", false, true );
caf::ProgressInfo progress( allWellPaths().size() + countWellLogs( allWellPaths() ) + 2, "Reading well paths from file", false, true, false );
readWellPathFormationFiles();