Skip to content
Snippets Groups Projects
Commit 20ea7486 authored by Andrew A. de Laix's avatar Andrew A. de Laix
Browse files

Fix EXT-8075: close signal connection on destruction to prevent callbacks...

Fix EXT-8075: close signal connection on destruction to prevent callbacks after LLInspectToast is, well, toast.
parent bd068caa
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,7 @@ class LLInspectToast: public LLInspect ...@@ -55,7 +55,7 @@ class LLInspectToast: public LLInspect
private: private:
void onToastDestroy(LLToast * toast); void onToastDestroy(LLToast * toast);
private: boost::signals2::scoped_connection mConnection;
LLPanel* mPanel; LLPanel* mPanel;
LLScreenChannel* mScreenChannel; LLScreenChannel* mScreenChannel;
}; };
...@@ -88,7 +88,7 @@ void LLInspectToast::onOpen(const LLSD& notification_id) ...@@ -88,7 +88,7 @@ void LLInspectToast::onOpen(const LLSD& notification_id)
llwarns << "Could not get requested toast from screen channel." << llendl; llwarns << "Could not get requested toast from screen channel." << llendl;
return; return;
} }
toast->setOnToastDestroyedCallback(boost::bind(&LLInspectToast::onToastDestroy, this, _1)); mConnection = toast->setOnToastDestroyedCallback(boost::bind(&LLInspectToast::onToastDestroy, this, _1));
LLPanel * panel = toast->getPanel(); LLPanel * panel = toast->getPanel();
panel->setVisible(TRUE); panel->setVisible(TRUE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment