mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Added ShowPlotWindow feature
This commit is contained in:
@@ -203,6 +203,8 @@ RiaApplication::RiaApplication(int& argc, char** argv)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiaApplication::~RiaApplication()
|
||||
{
|
||||
deleteMainPlotWindow();
|
||||
|
||||
delete m_preferences;
|
||||
}
|
||||
|
||||
@@ -692,11 +694,8 @@ bool RiaApplication::closeProject(bool askToSaveIfDirty)
|
||||
if (m_mainPlotWindow)
|
||||
{
|
||||
m_mainPlotWindow->cleanupGuiBeforeProjectClose();
|
||||
|
||||
deleteMainPlotWindow();
|
||||
}
|
||||
|
||||
|
||||
caf::EffectGenerator::clearEffectCache();
|
||||
m_project->close();
|
||||
|
||||
@@ -1329,7 +1328,10 @@ RiuMainPlotWindow* RiaApplication::getOrCreateAndShowMainPlotWindow()
|
||||
createMainPlotWindow();
|
||||
}
|
||||
|
||||
m_mainPlotWindow->showWindow();
|
||||
if (!m_mainPlotWindow->isVisible())
|
||||
{
|
||||
m_mainPlotWindow->show();
|
||||
}
|
||||
|
||||
return m_mainPlotWindow;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user