mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Improve error handling when trying to access OSDU data
Show more details when support for SSL is missing. Move connection of signal/slot away from constructor. This makes it possible to use ResInsight even if SSL is not available.
This commit is contained in:
@@ -67,6 +67,11 @@ void RicWellPathsImportOsduFeature::onActionTriggered( bool isChecked )
|
||||
if ( !oilField ) return;
|
||||
|
||||
RiaOsduConnector* osduConnector = app->makeOsduConnector();
|
||||
if ( !osduConnector )
|
||||
{
|
||||
RiaLogging::error( "Failed to create OSDU connector" );
|
||||
return;
|
||||
}
|
||||
|
||||
RiuWellImportWizard wellImportwizard( osduConnector, RiuMainWindow::instance() );
|
||||
|
||||
|
||||
@@ -62,6 +62,11 @@ void RicImportWellLogOsduFeature::onActionTriggered( bool isChecked )
|
||||
if ( !oilField->wellPathCollection ) oilField->wellPathCollection = std::make_unique<RimWellPathCollection>();
|
||||
|
||||
auto osduConnector = app->makeOsduConnector();
|
||||
if ( !osduConnector )
|
||||
{
|
||||
RiaLogging::error( "Failed to create OSDU connector" );
|
||||
return;
|
||||
}
|
||||
|
||||
RiuWellLogImportWizard wellLogImportWizard( osduConnector, wellPath->wellboreId(), RiuMainWindow::instance() );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user