diff options
author | Richard Linden <none@none> | 2010-10-15 14:05:11 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2010-10-15 14:05:11 -0700 |
commit | 7df167129955f2f44b2048f1e8e89c685f2b7485 (patch) | |
tree | f5abe3363922b43fe0cdb741366d31fa8e6c75bb /indra/newview | |
parent | 562fa040dfce3904271150c8213ef46c90369ac6 (diff) |
EXP-229 FIXED Double clicking x on UI hint crashes Skylight Viewer
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llhints.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/llhints.cpp b/indra/newview/llhints.cpp index 5ffc4ace59..8edc42e15c 100644 --- a/indra/newview/llhints.cpp +++ b/indra/newview/llhints.cpp @@ -112,7 +112,14 @@ public: /*virtual*/ BOOL postBuild(); - void onClickClose() { hide(); LLNotifications::instance().cancel(mNotification); } + void onClickClose() + { + if (!mHidden) + { + hide(); + LLNotifications::instance().cancel(mNotification); + } + } void draw(); void hide() { if(!mHidden) {mHidden = true; mFadeTimer.reset();} } |