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:
@@ -1711,6 +1711,18 @@ RiaOsduConnector* RiaApplication::makeOsduConnector()
|
||||
{
|
||||
if ( m_osduConnector ) return m_osduConnector;
|
||||
|
||||
if ( !QSslSocket::supportsSsl() )
|
||||
{
|
||||
QString errMsg = "SSL support is not available. ";
|
||||
#ifdef Q_OS_WIN
|
||||
errMsg +=
|
||||
"Make sure that the SSL libraries are available (on Windows platform, they are called 'libcrypto*.dll' and 'libssl*.dll').";
|
||||
#endif
|
||||
RiaLogging::errorInMessageBox( nullptr, "OSDU Service Connection", errMsg );
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
RiaPreferencesOsdu* osduPreferences = preferences()->osduPreferences();
|
||||
const QString server = osduPreferences->server();
|
||||
const QString dataPartitionId = osduPreferences->dataPartitionId();
|
||||
|
||||
Reference in New Issue
Block a user