#225 Clear Result Info and Result Plot when closing a case

This commit is contained in:
Magne Sjaastad
2016-07-18 16:16:10 +02:00
parent b0caea9e98
commit fa19a74dcc
3 changed files with 17 additions and 3 deletions

View File

@@ -175,15 +175,14 @@ void RiuMainWindow::initializeGuiNewProjectLoaded()
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RiuMainWindow::cleanupGuiBeforeProjectClose()
void RiuMainWindow::cleanupGuiCaseClose()
{
caf::CmdExecCommandManager::instance()->undoStack()->clear();
setPdmRoot(NULL);
setResultInfo("");
m_resultQwtPlot->deleteAllCurves();
if (m_pdmUiPropertyView)
{
m_pdmUiPropertyView->showProperties(NULL);
@@ -200,6 +199,16 @@ void RiuMainWindow::cleanupGuiBeforeProjectClose()
m_processMonitor->startMonitorWorkProcess(NULL);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RiuMainWindow::cleanupGuiBeforeProjectClose()
{
setPdmRoot(NULL);
cleanupGuiCaseClose();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------