Go to file
Vadim Savchuk 4d40d670a1 EXT-8463 FIXED Crash in IM/chat floaters.
Reason
======

Each message in an IM/chat session has a header. The header shows an (i) button on hover and hides it when mouse leaves the header.

The button is shown by adding it as a header child and hidden by resetting the button parent.

So, if you close the IM session so that the hovered header doesn't get the MouseLeave message (e.g. by Ctrl+W),
the button gets destroyed. If you then open the IM session again and hover a message header, the destroyed button
is referenced, which leads to crash.

Fix
===

We make sure that when a hovered message header is being destroyed (by closing the IM session),
the button is detached (i.e. its parent gets reset), so that it remains usable.
I also add a couple of checks for the case when the (i) button fails to construct from XML file.

Reviewed by Mike Antipov at https://codereview.productengine.com/secondlife/r/783/

--HG--
branch : product-engine
2010-07-20 19:59:34 +03:00
doc SNOW-484/DEV-51808 FIXED Recursive animations can crash viewer 2010-07-12 17:54:02 +01:00
etc
…
indra EXT-8463 FIXED Crash in IM/chat floaters. 2010-07-20 19:59:34 +03:00
scripts
…
.hgignore
…
install.xml Fix for windows build breakage. Set WINVER and _WIN32_WINNT preprocessor definitions appropriately for using windows XP API calls. 2010-06-30 17:30:32 -07:00