#8113 LAS file import: Do not use message box for warning

This commit is contained in:
Magne Sjaastad
2021-10-06 11:45:37 +02:00
parent c40efa8db0
commit bfd4457a6a
3 changed files with 2 additions and 16 deletions

View File

@@ -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 );
}
}