mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#225 Clear Result Info and Result Plot when closing a case
This commit is contained in:
parent
b0caea9e98
commit
fa19a74dcc
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -75,6 +75,7 @@ public:
|
||||
static RiuMainWindow* instance();
|
||||
|
||||
void initializeGuiNewProjectLoaded();
|
||||
void cleanupGuiCaseClose();
|
||||
void cleanupGuiBeforeProjectClose();
|
||||
|
||||
void removeViewer( QWidget* viewer );
|
||||
|
Loading…
Reference in New Issue
Block a user