diff options
author | Richard Linden <none@none> | 2010-10-29 14:58:35 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2010-10-29 14:58:35 -0700 |
commit | 95c998918646777e0f12b6663c364a93d2c8df3c (patch) | |
tree | 63c15b91ece23afe5c4a9a5ec727ca9bab132ebf | |
parent | 8297c278ac23917ee543419a492c3629dcfb7527 (diff) |
VWR-23444 FIXED Double clicking x on UI hint crashes Skylight Viewer
-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 7f6df627e0..3f0deb98cd 100644 --- a/indra/newview/llhints.cpp +++ b/indra/newview/llhints.cpp @@ -109,7 +109,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();} } |