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:
@@ -67,11 +67,15 @@ void RicCloseCaseFeature::onActionTriggered(bool isChecked)
|
|||||||
if (userConfirmedGridCaseGroupChange(casesToBeDeleted))
|
if (userConfirmedGridCaseGroupChange(casesToBeDeleted))
|
||||||
{
|
{
|
||||||
deleteEclipseCase(eclipseCase);
|
deleteEclipseCase(eclipseCase);
|
||||||
|
|
||||||
|
RiuMainWindow::instance()->cleanupGuiCaseClose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (geoMechCase)
|
else if (geoMechCase)
|
||||||
{
|
{
|
||||||
deleteGeoMechCase(geoMechCase);
|
deleteGeoMechCase(geoMechCase);
|
||||||
|
|
||||||
|
RiuMainWindow::instance()->cleanupGuiCaseClose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -175,15 +175,14 @@ void RiuMainWindow::initializeGuiNewProjectLoaded()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RiuMainWindow::cleanupGuiBeforeProjectClose()
|
void RiuMainWindow::cleanupGuiCaseClose()
|
||||||
{
|
{
|
||||||
caf::CmdExecCommandManager::instance()->undoStack()->clear();
|
caf::CmdExecCommandManager::instance()->undoStack()->clear();
|
||||||
|
|
||||||
setPdmRoot(NULL);
|
|
||||||
setResultInfo("");
|
setResultInfo("");
|
||||||
|
|
||||||
m_resultQwtPlot->deleteAllCurves();
|
m_resultQwtPlot->deleteAllCurves();
|
||||||
|
|
||||||
if (m_pdmUiPropertyView)
|
if (m_pdmUiPropertyView)
|
||||||
{
|
{
|
||||||
m_pdmUiPropertyView->showProperties(NULL);
|
m_pdmUiPropertyView->showProperties(NULL);
|
||||||
@@ -200,6 +199,16 @@ void RiuMainWindow::cleanupGuiBeforeProjectClose()
|
|||||||
m_processMonitor->startMonitorWorkProcess(NULL);
|
m_processMonitor->startMonitorWorkProcess(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
void RiuMainWindow::cleanupGuiBeforeProjectClose()
|
||||||
|
{
|
||||||
|
setPdmRoot(NULL);
|
||||||
|
|
||||||
|
cleanupGuiCaseClose();
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ public:
|
|||||||
static RiuMainWindow* instance();
|
static RiuMainWindow* instance();
|
||||||
|
|
||||||
void initializeGuiNewProjectLoaded();
|
void initializeGuiNewProjectLoaded();
|
||||||
|
void cleanupGuiCaseClose();
|
||||||
void cleanupGuiBeforeProjectClose();
|
void cleanupGuiBeforeProjectClose();
|
||||||
|
|
||||||
void removeViewer( QWidget* viewer );
|
void removeViewer( QWidget* viewer );
|
||||||
|
|||||||
Reference in New Issue
Block a user