Commit 8e40e3b8 authored by Rob Applin's avatar Rob Applin
Browse files

Refs #30419. Unset factory when destroying InstrumentWidgetMaskTab.

parent 81450d60
...@@ -73,6 +73,7 @@ public: ...@@ -73,6 +73,7 @@ public:
}; };
explicit InstrumentWidgetMaskTab(InstrumentWidget *instrWidget); explicit InstrumentWidgetMaskTab(InstrumentWidget *instrWidget);
~InstrumentWidgetMaskTab();
void initSurface() override; void initSurface() override;
void setMode(Mode mode); void setMode(Mode mode);
void selectTool(Activity tool); void selectTool(Activity tool);
......
...@@ -370,6 +370,10 @@ InstrumentWidgetMaskTab::InstrumentWidgetMaskTab(InstrumentWidget *instrWidget) ...@@ -370,6 +370,10 @@ InstrumentWidgetMaskTab::InstrumentWidgetMaskTab(InstrumentWidget *instrWidget)
SLOT(enableApplyButtons())); SLOT(enableApplyButtons()));
} }
InstrumentWidgetMaskTab::~InstrumentWidgetMaskTab() {
m_browser->unsetFactoryForManager(m_doubleManager);
}
/** /**
* Initialize the tab when new projection surface is created. * Initialize the tab when new projection surface is created.
*/ */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment