mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#8113 LAS file import: Do not use message box for warning
This commit is contained in:
parent
c40efa8db0
commit
bfd4457a6a
@ -173,15 +173,6 @@ RiaPreferences::RiaPreferences()
|
||||
CAF_PDM_InitFieldNoDefault( &defaultWellLabelFontSize, "defaultWellLabelFontSizePt", "Well Label Font Size", "", "", "" );
|
||||
CAF_PDM_InitFieldNoDefault( &defaultPlotFontSize, "defaultPlotFontSizePt", "Plot Font Size", "", "", "" );
|
||||
|
||||
CAF_PDM_InitField( &showLasCurveWithoutTvdWarning,
|
||||
"showLasCurveWithoutTvdWarning",
|
||||
true,
|
||||
"Show LAS Curve Without TVD Warning",
|
||||
"",
|
||||
"",
|
||||
"" );
|
||||
caf::PdmUiNativeCheckBoxEditor::configureFieldForEditor( &showLasCurveWithoutTvdWarning );
|
||||
|
||||
CAF_PDM_InitField( &m_useShaders, "useShaders", true, "Use Shaders", "", "", "" );
|
||||
caf::PdmUiNativeCheckBoxEditor::configureFieldForEditor( &m_useShaders );
|
||||
CAF_PDM_InitField( &m_showHud, "showHud", false, "Show 3D Information", "", "", "" );
|
||||
@ -435,7 +426,6 @@ void RiaPreferences::defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering&
|
||||
|
||||
caf::PdmUiGroup* otherGroup = uiOrdering.addNewGroup( "Other" );
|
||||
otherGroup->add( &ssihubAddress );
|
||||
otherGroup->add( &showLasCurveWithoutTvdWarning );
|
||||
otherGroup->add( &holoLensDisableCertificateVerification );
|
||||
otherGroup->add( &m_useUndoRedo );
|
||||
otherGroup->add( &m_showProgressBar );
|
||||
|
@ -139,7 +139,6 @@ public:
|
||||
caf::PdmField<cvf::Color3f> defaultFaultGridLineColors;
|
||||
caf::PdmField<cvf::Color3f> defaultViewerBackgroundColor;
|
||||
caf::PdmField<cvf::Color3f> defaultWellLabelColor;
|
||||
caf::PdmField<bool> showLasCurveWithoutTvdWarning;
|
||||
|
||||
caf::PdmField<FontSizeEnum> defaultSceneFontSize;
|
||||
caf::PdmField<FontSizeEnum> defaultWellLabelFontSize;
|
||||
|
@ -162,14 +162,11 @@ void RimWellLogFileCurve::onLoadDataAndUpdate( bool updateParentPlot )
|
||||
.arg( depthTitle );
|
||||
}
|
||||
|
||||
bool showWarning = !RiaPreferences::current()->showLasCurveWithoutTvdWarning();
|
||||
if ( !errMsg.isEmpty() && showWarning )
|
||||
if ( !errMsg.isEmpty() )
|
||||
{
|
||||
QString tmp = QString( "The LAS curve can not be displayed.\n%1\n" ).arg( errMsg );
|
||||
tmp += "Control display of this warning from \"Preferences->Show LAS curve without TVD "
|
||||
"warning\"";
|
||||
|
||||
RiaLogging::errorInMessageBox( nullptr, "LAS curve without current depth type", tmp );
|
||||
RiaLogging::warning( tmp );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user