mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add cancellation of well path collection loading.
This commit is contained in:
@@ -79,6 +79,20 @@ bool RimOsduWellPathDataLoader::isRunnable() const
|
||||
return false;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimOsduWellPathDataLoader::cancel()
|
||||
{
|
||||
RiaApplication* app = RiaApplication::instance();
|
||||
RiaOsduConnector* osduConnector = app->makeOsduConnector();
|
||||
|
||||
for ( auto& [trajectoryId, taskId] : m_taskIds )
|
||||
{
|
||||
osduConnector->cancelRequestForId( trajectoryId );
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user