| 1912 | //----------------------------------------------------------------------------- |
| 1913 | |
| 1914 | void GuiControl::removeObject(SimObject *object) |
| 1915 | { |
| 1916 | GuiControl* ctrl = static_cast< GuiControl* >( object ); |
| 1917 | if( mAwake && ctrl->isAwake() ) |
| 1918 | ctrl->sleep(); |
| 1919 | |
| 1920 | onChildRemoved( ctrl ); |
| 1921 | |
| 1922 | Parent::removeObject(object); |
| 1923 | } |
| 1924 | |
| 1925 | //----------------------------------------------------------------------------- |
| 1926 |