diff options
author | McCabe Maxsted | 2010-03-04 13:16:28 -0700 |
---|---|---|
committer | Jacek Antonelli | 2010-03-11 19:03:52 -0600 |
commit | 1ddfb4c5dd436fc1a9a867d0a2b9980483a3d3fd (patch) | |
tree | 4ce9ece8150a60ab7292bd6cef3ff3c0dfcc4025 /linden/indra/newview/llpreview.cpp | |
parent | Applied UnknownJointsCrashFix v2 from Cool Viewer. (diff) | |
download | meta-impy-1ddfb4c5dd436fc1a9a867d0a2b9980483a3d3fd.zip meta-impy-1ddfb4c5dd436fc1a9a867d0a2b9980483a3d3fd.tar.gz meta-impy-1ddfb4c5dd436fc1a9a867d0a2b9980483a3d3fd.tar.bz2 meta-impy-1ddfb4c5dd436fc1a9a867d0a2b9980483a3d3fd.tar.xz |
Applied Kitty Barnett's patch for Search/Replace in notecards.
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llpreview.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/linden/indra/newview/llpreview.cpp b/linden/indra/newview/llpreview.cpp index 6e7c6e3..f679a75 100644 --- a/linden/indra/newview/llpreview.cpp +++ b/linden/indra/newview/llpreview.cpp | |||
@@ -47,6 +47,9 @@ | |||
47 | #include "llviewerobjectlist.h" | 47 | #include "llviewerobjectlist.h" |
48 | #include "lldbstrings.h" | 48 | #include "lldbstrings.h" |
49 | #include "llagent.h" | 49 | #include "llagent.h" |
50 | #include "llfloatersearchreplace.h" | ||
51 | #include "llpreviewnotecard.h" | ||
52 | #include "llpreviewscript.h" | ||
50 | #include "llvoavatar.h" | 53 | #include "llvoavatar.h" |
51 | #include "llselectmgr.h" | 54 | #include "llselectmgr.h" |
52 | #include "llinventoryview.h" | 55 | #include "llinventoryview.h" |
@@ -576,6 +579,24 @@ void LLMultiPreview::tabOpen(LLFloater* opened_floater, bool from_click) | |||
576 | { | 579 | { |
577 | opened_preview->loadAsset(); | 580 | opened_preview->loadAsset(); |
578 | } | 581 | } |
582 | |||
583 | LLFloater* search_floater = LLFloaterSearchReplace::getInstance(); | ||
584 | if ( (search_floater) && (search_floater->getDependee() == this) ) | ||
585 | { | ||
586 | LLPreviewNotecard* notecard_preview; LLPreviewLSL* script_preview; | ||
587 | if ( (notecard_preview = dynamic_cast<LLPreviewNotecard*>(opened_preview)) != NULL ) | ||
588 | { | ||
589 | LLFloaterSearchReplace::show(notecard_preview->getEditor()); | ||
590 | } | ||
591 | else if ( (script_preview = dynamic_cast<LLPreviewLSL*>(opened_preview)) != NULL ) | ||
592 | { | ||
593 | LLFloaterSearchReplace::show(script_preview->getEditor()); | ||
594 | } | ||
595 | else | ||
596 | { | ||
597 | search_floater->setVisible(FALSE); | ||
598 | } | ||
599 | } | ||
579 | } | 600 | } |
580 | 601 | ||
581 | //static | 602 | //static |