summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterhelpbrowser.cpp
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2009-10-07 20:54:31 +0000
committerJames Cook <james@lindenlab.com>2009-10-07 20:54:31 +0000
commitec84b639ed71c1dac8457867148d8aea6d595685 (patch)
tree71f46df7991cff5a9e9cf500c9b3c339d84a2637 /indra/newview/llfloaterhelpbrowser.cpp
parentec278c9dfb71d9ccebacc858240a08d02c758b88 (diff)
EXT-1339 Create onClose method in LLFloater, and remove most bindings to mCloseSignal. In the vast majority of cases, mCloseSignal is being bound to an onClose function. Just make it virtual and be done with it. Renamed a couple of LLPanel close methods to onClosePanel() to distinguish them. Reviewed with Richard.
Diffstat (limited to 'indra/newview/llfloaterhelpbrowser.cpp')
-rw-r--r--indra/newview/llfloaterhelpbrowser.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/indra/newview/llfloaterhelpbrowser.cpp b/indra/newview/llfloaterhelpbrowser.cpp
index 6b0b5ed5e0..2e0ae3265e 100644
--- a/indra/newview/llfloaterhelpbrowser.cpp
+++ b/indra/newview/llfloaterhelpbrowser.cpp
@@ -50,9 +50,6 @@
LLFloaterHelpBrowser::LLFloaterHelpBrowser(const LLSD& key)
: LLFloater(key)
{
- // really really destroy the help browser when it's closed, it'll be recreated.
- // *TODO: when onClose() is resurrected as a virtual, this bind can go away.
- mCloseSignal.connect(boost::bind(&LLFloaterHelpBrowser::onClose, this));
}
BOOL LLFloaterHelpBrowser::postBuild()
@@ -79,8 +76,10 @@ void LLFloaterHelpBrowser::buildURLHistory()
}
}
-void LLFloaterHelpBrowser::onClose()
+//virtual
+void LLFloaterHelpBrowser::onClose(bool app_quitting)
{
+ // really really destroy the help browser when it's closed, it'll be recreated.
destroy(); // really destroy this dialog on closure, it's relatively heavyweight.
}