mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-16 08:42:23 +00:00
Fix infinite recursion on shutdown caused by incorrect onWidgetDestroy listener
This commit is contained in:
parent
e4717d7c92
commit
c4a42f2e1f
@ -749,11 +749,6 @@ void HBox::onWidgetCreated(MyGUI::Widget* _widget)
|
|||||||
align();
|
align();
|
||||||
}
|
}
|
||||||
|
|
||||||
void HBox::onWidgetDestroy(MyGUI::Widget* _widget)
|
|
||||||
{
|
|
||||||
align();
|
|
||||||
}
|
|
||||||
|
|
||||||
MyGUI::IntSize HBox::getRequestedSize ()
|
MyGUI::IntSize HBox::getRequestedSize ()
|
||||||
{
|
{
|
||||||
MyGUI::IntSize size(0,0);
|
MyGUI::IntSize size(0,0);
|
||||||
@ -905,8 +900,3 @@ void VBox::onWidgetCreated(MyGUI::Widget* _widget)
|
|||||||
{
|
{
|
||||||
align();
|
align();
|
||||||
}
|
}
|
||||||
|
|
||||||
void VBox::onWidgetDestroy(MyGUI::Widget* _widget)
|
|
||||||
{
|
|
||||||
align();
|
|
||||||
}
|
|
||||||
|
@ -403,7 +403,6 @@ namespace MWGui
|
|||||||
virtual void setPropertyOverride(const std::string& _key, const std::string& _value);
|
virtual void setPropertyOverride(const std::string& _key, const std::string& _value);
|
||||||
|
|
||||||
virtual void onWidgetCreated(MyGUI::Widget* _widget);
|
virtual void onWidgetCreated(MyGUI::Widget* _widget);
|
||||||
virtual void onWidgetDestroy(MyGUI::Widget* _widget);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class VBox : public Box, public MyGUI::Widget
|
class VBox : public Box, public MyGUI::Widget
|
||||||
@ -421,7 +420,6 @@ namespace MWGui
|
|||||||
virtual void setPropertyOverride(const std::string& _key, const std::string& _value);
|
virtual void setPropertyOverride(const std::string& _key, const std::string& _value);
|
||||||
|
|
||||||
virtual void onWidgetCreated(MyGUI::Widget* _widget);
|
virtual void onWidgetCreated(MyGUI::Widget* _widget);
|
||||||
virtual void onWidgetDestroy(MyGUI::Widget* _widget);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user