mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
#2894 Summary cases. Moved code to more appropriate location
This commit is contained in:
@@ -1914,21 +1914,6 @@ bool RiaApplication::openFile(const QString& fileName)
|
||||
{
|
||||
getOrCreateAndShowMainPlotWindow();
|
||||
|
||||
const auto& cases = m_project->allSummaryCases();
|
||||
|
||||
RiuPlotMainWindow* mainPlotWindow = RiaApplication::instance()->getOrCreateAndShowMainPlotWindow();
|
||||
if (mainPlotWindow && !cases.empty())
|
||||
{
|
||||
mainPlotWindow->selectAsCurrentItem(cases.back());
|
||||
|
||||
mainPlotWindow->updateSummaryPlotToolBar();
|
||||
}
|
||||
|
||||
if (cases.size() == 0)
|
||||
{
|
||||
RiuMainWindow::instance()->close();
|
||||
}
|
||||
|
||||
m_project->updateConnectedEditors();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user