#6992 Fix crash in application cleanup when using command files.

This commit is contained in:
Kristian Bendiksen 2020-11-16 13:41:05 +01:00 committed by Magne Sjaastad
parent 4d97abaa58
commit dc0607dfd3
4 changed files with 18 additions and 0 deletions

View File

@ -161,6 +161,14 @@ RiuMainWindow::RiuMainWindow()
dockTimer->start( 1000 );
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RiuMainWindow::~RiuMainWindow()
{
setPdmRoot( nullptr );
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -79,6 +79,7 @@ class RiuMainWindow : public RiuMainWindowBase
public:
RiuMainWindow();
~RiuMainWindow();
static RiuMainWindow* instance();

View File

@ -91,6 +91,14 @@ RiuPlotMainWindow::RiuPlotMainWindow()
// caf::CmdExecCommandManager::instance()->enableUndoCommandSystem(true);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RiuPlotMainWindow::~RiuPlotMainWindow()
{
setPdmRoot( nullptr );
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -57,6 +57,7 @@ class RiuPlotMainWindow : public RiuMainWindowBase
public:
RiuPlotMainWindow();
~RiuPlotMainWindow();
QString mainWindowName() override;