Added ShowPlotWindow feature

This commit is contained in:
Magne Sjaastad
2016-06-27 15:27:18 +02:00
parent 119881dc7d
commit 3b55f98dbd
6 changed files with 122 additions and 13 deletions

View File

@@ -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;
}