Replacing fix for FIRE-517 with V-D's EXP-229 "FIXED Double clicking x on UI hint crashes Skylight Viewer" (same code, different whitespace)

This will make later merge with V-D upstream a very tiny bit easier
meow-7.2.2
Kadah 2011-04-24 00:25:36 -07:00
parent 7800dc1fab
commit 13ce3edf1c
1 changed files with 8 additions and 1 deletions

View File

@ -112,7 +112,14 @@ public:
/*virtual*/ BOOL postBuild();
void onClickClose() { if(!mHidden) {hide(); LLNotifications::instance().cancel(mNotification);} }
void onClickClose()
{
if (!mHidden)
{
hide();
LLNotifications::instance().cancel(mNotification);
}
}
void draw();
void hide() { if(!mHidden) {mHidden = true; mFadeTimer.reset();} }