mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#916 If possible, hide plots when importing 3D case, and hide 3D windows when importing summary case
This commit is contained in:
@@ -28,6 +28,8 @@
|
||||
#include "RimSummaryCaseCollection.h"
|
||||
#include "RimSummaryPlotCollection.h"
|
||||
|
||||
#include "RiuMainWindow.h"
|
||||
|
||||
#include "SummaryPlotCommands/RicNewSummaryPlotFeature.h"
|
||||
|
||||
#include <QAction>
|
||||
@@ -68,6 +70,14 @@ void RicImportSummaryCaseFeature::onActionTriggered(bool isChecked)
|
||||
}
|
||||
|
||||
app->getOrCreateAndShowMainPlotWindow();
|
||||
|
||||
std::vector<RimCase*> cases;
|
||||
app->project()->allCases(cases);
|
||||
|
||||
if (cases.size() == 0)
|
||||
{
|
||||
RiuMainWindow::instance()->close();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user