mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-07 04:45:52 +00:00
Ensure event callback removed when quitting
This commit is contained in:
parent
a161fb28d9
commit
5fc5b6b0e1
@ -113,6 +113,7 @@ class RootView : public View
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
RootView(IViewManager& viewMan, ViewResources& res, boo::IWindow* window);
|
RootView(IViewManager& viewMan, ViewResources& res, boo::IWindow* window);
|
||||||
|
~RootView();
|
||||||
|
|
||||||
void destroyed();
|
void destroyed();
|
||||||
bool isDestroyed() const {return m_destroyed;}
|
bool isDestroyed() const {return m_destroyed;}
|
||||||
|
@ -22,6 +22,11 @@ RootView::RootView(IViewManager& viewMan, ViewResources& res, boo::IWindow* wind
|
|||||||
resized(rect, rect);
|
resized(rect, rect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RootView::~RootView()
|
||||||
|
{
|
||||||
|
m_window->setCallback(nullptr);
|
||||||
|
}
|
||||||
|
|
||||||
RootView::SplitMenuSystem::SplitMenuSystem(RootView& rv, boo::IGraphicsDataFactory::Context& ctx)
|
RootView::SplitMenuSystem::SplitMenuSystem(RootView& rv, boo::IGraphicsDataFactory::Context& ctx)
|
||||||
: m_rv(rv), m_text(rv.m_viewMan.translateOr("boundary_action", "Boundary Action")),
|
: m_rv(rv), m_text(rv.m_viewMan.translateOr("boundary_action", "Boundary Action")),
|
||||||
m_splitActionNode(*this), m_joinActionNode(*this)
|
m_splitActionNode(*this), m_joinActionNode(*this)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user