#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

@ -67,11 +67,15 @@ void RicCloseCaseFeature::onActionTriggered(bool isChecked)
if (userConfirmedGridCaseGroupChange(casesToBeDeleted))
{
deleteEclipseCase(eclipseCase);
RiuMainWindow::instance()->cleanupGuiCaseClose();
}
}
else if (geoMechCase)
{
deleteGeoMechCase(geoMechCase);
RiuMainWindow::instance()->cleanupGuiCaseClose();
}
}

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();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -75,6 +75,7 @@ public:
static RiuMainWindow* instance();
void initializeGuiNewProjectLoaded();
void cleanupGuiCaseClose();
void cleanupGuiBeforeProjectClose();
void removeViewer( QWidget* viewer );