Merge https://github.com/PlayerDagostino/SingularityViewer into future
Conflicts: indra/llplugin/llplugininstance.cpp indra/llwindow/llwindowsdl.cpp indra/llwindow/llwindowsdl.h indra/newview/llpreviewnotecard.cpp indra/newview/llviewerwindow.h
This commit is contained in:
@@ -47,6 +47,9 @@
|
||||
#include "llviewerobject.h"
|
||||
#include "llviewerobjectlist.h"
|
||||
#include "lldbstrings.h"
|
||||
#include "llfloatersearchreplace.h"
|
||||
#include "llpreviewnotecard.h"
|
||||
#include "llpreviewscript.h"
|
||||
#include "llagent.h"
|
||||
#include "llvoavatarself.h"
|
||||
#include "llselectmgr.h"
|
||||
@@ -579,6 +582,24 @@ void LLMultiPreview::tabOpen(LLFloater* opened_floater, bool from_click)
|
||||
{
|
||||
opened_preview->loadAsset();
|
||||
}
|
||||
|
||||
LLFloater* search_floater = LLFloaterSearchReplace::getInstance();
|
||||
if (search_floater && search_floater->getDependee() == this)
|
||||
{
|
||||
LLPreviewNotecard* notecard_preview; LLPreviewLSL* script_preview;
|
||||
if ((notecard_preview = dynamic_cast<LLPreviewNotecard*>(opened_preview)) != NULL)
|
||||
{
|
||||
LLFloaterSearchReplace::show(notecard_preview->getEditor());
|
||||
}
|
||||
else if ((script_preview = dynamic_cast<LLPreviewLSL*>(opened_preview)) != NULL)
|
||||
{
|
||||
LLFloaterSearchReplace::show(script_preview->getEditor());
|
||||
}
|
||||
else
|
||||
{
|
||||
search_floater->setVisible(FALSE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//static
|
||||
|
||||
Reference in New Issue
Block a user