summaryrefslogtreecommitdiff
path: root/indra/newview/llhints.cpp
diff options
context:
space:
mode:
authorRichard Linden <none@none>2010-10-15 14:05:11 -0700
committerRichard Linden <none@none>2010-10-15 14:05:11 -0700
commit7df167129955f2f44b2048f1e8e89c685f2b7485 (patch)
treef5abe3363922b43fe0cdb741366d31fa8e6c75bb /indra/newview/llhints.cpp
parent562fa040dfce3904271150c8213ef46c90369ac6 (diff)
EXP-229 FIXED Double clicking x on UI hint crashes Skylight Viewer
Diffstat (limited to 'indra/newview/llhints.cpp')
-rw-r--r--indra/newview/llhints.cpp9
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();} }