#7952 Well Log Ensemble: Fix behavior when running in console mode (#8022)

This commit is contained in:
Kristian Bendiksen authored and GitHub committed 2021-09-20 11:29:04 +02:00
1 parent fd8fbe19f4
commit 3d2fca1866
3 files changed
-12

No files matched your search

@@ -18,7 +18,6 @@
#include "RimcWellLogPlotCollection.h"
#include "RiaApplication.h"
#include "RiaGuiApplication.h"
#include "RimcWellLogPlot.h"
#include "WellLogCommands/RicNewWellLogPlotFeatureImpl.h"
@@ -60,9 +59,6 @@ caf::PdmObjectHandle* RimcWellLogPlotCollection_newWellLogPlot::execute()
RimWellLogPlot* newWellLogPlot = nullptr;
RimWellLogPlotCollection* wellLogPlotCollection = self<RimWellLogPlotCollection>();
// Make sure the plot window is created
RiaGuiApplication::instance()->getOrCreateMainPlotWindow();
if ( m_case && m_wellPath && wellLogPlotCollection )
{
newWellLogPlot = createWellLogPlot( wellLogPlotCollection, m_wellPath, m_case );