diff options
Diffstat (limited to 'indra/newview/llpreviewscript.cpp')
-rw-r--r-- | indra/newview/llpreviewscript.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/newview/llpreviewscript.cpp b/indra/newview/llpreviewscript.cpp index a7d29a6591..eb86934a54 100644 --- a/indra/newview/llpreviewscript.cpp +++ b/indra/newview/llpreviewscript.cpp @@ -169,6 +169,18 @@ LLFloaterScriptSearch::LLFloaterScriptSearch(std::string title, LLRect rect, LLS sInstance = this; childSetFocus("search_text", TRUE); + + // find floater in which script panel is embedded + LLView* viewp = (LLView*)editor_core; + while(viewp) + { + if (viewp->getWidgetType() == WIDGET_TYPE_FLOATER) + { + ((LLFloater*)viewp)->addDependentFloater(this); + break; + } + viewp = viewp->getParent(); + } } //static |