mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6771 Regression Test: Replace QMessageBox with RiaLogging::errorInMessageBox
Fix typo Includes
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include "RimSummaryCaseCollection.h"
|
||||
|
||||
#include "RiaFieldHandleTools.h"
|
||||
#include "RiaLogging.h"
|
||||
#include "RiaStatisticsTools.h"
|
||||
#include "RiaWeightedMeanCalculator.h"
|
||||
|
||||
@@ -38,7 +39,6 @@
|
||||
#include "cafPdmFieldScriptingCapability.h"
|
||||
|
||||
#include <QFileInfo>
|
||||
#include <QMessageBox>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
@@ -911,10 +911,8 @@ bool RimSummaryCaseCollection::validateEnsembleCases( const std::vector<RimSumma
|
||||
}
|
||||
catch ( QString errorMessage )
|
||||
{
|
||||
QMessageBox mbox;
|
||||
mbox.setIcon( QMessageBox::Icon::Warning );
|
||||
mbox.setText( errorMessage );
|
||||
mbox.exec();
|
||||
RiaLogging::errorInMessageBox( nullptr, "", errorMessage );
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "RiaCurveMerger.h"
|
||||
#include "RiaDefines.h"
|
||||
#include "RiaGuiApplication.h"
|
||||
#include "RiaLogging.h"
|
||||
#include "RiaPreferences.h"
|
||||
#include "RiaStatisticsTools.h"
|
||||
#include "RiaSummaryTools.h"
|
||||
@@ -58,7 +59,6 @@
|
||||
#include "qwt_plot.h"
|
||||
|
||||
#include "cafPdmUiLineEditor.h"
|
||||
#include <QMessageBox>
|
||||
|
||||
CAF_PDM_SOURCE_INIT( RimSummaryCurve, "SummaryCurve" );
|
||||
|
||||
@@ -1166,7 +1166,7 @@ void RimSummaryCurve::fieldChangedByUi( const caf::PdmFieldHandle* changedField,
|
||||
.arg( last.toString( formatString ) );
|
||||
}
|
||||
|
||||
QMessageBox::warning( nullptr, "Detected no overlapping time steps", description );
|
||||
RiaLogging::errorInMessageBox( nullptr, "Detected no overlapping time steps", description );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user