summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorJon Wolk <jwolk@lindenlab.com>2008-01-24 21:11:28 +0000
committerJon Wolk <jwolk@lindenlab.com>2008-01-24 21:11:28 +0000
commited517c3b1440145aaf7226c1ac8270f20509f708 (patch)
treefefc8447366f54b4aa3053561bf6dd899612e6f1 /indra/llui
parentc48ebd889b3baa6adf051e3b114052291ac72603 (diff)
svn merge -r 77416:78126 svn+ssh://svn.lindenlab.com/svn/linden/branches/Branch_1-19-0-Viewer_abandoned -> release
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llmodaldialog.cpp10
-rw-r--r--indra/llui/llmodaldialog.h2
2 files changed, 12 insertions, 0 deletions
diff --git a/indra/llui/llmodaldialog.cpp b/indra/llui/llmodaldialog.cpp
index ca8020fe70..af14ec418f 100644
--- a/indra/llui/llmodaldialog.cpp
+++ b/indra/llui/llmodaldialog.cpp
@@ -70,6 +70,16 @@ LLModalDialog::~LLModalDialog()
}
}
+// virtual
+void LLModalDialog::open() /* Flawfinder: ignore */
+{
+ // SJB: Hack! Make sure we don't ever host a modal dialog
+ LLMultiFloater* thost = LLFloater::sHostp;
+ LLFloater::sHostp = NULL;
+ LLFloater::open();
+ LLFloater::sHostp = thost;
+}
+
void LLModalDialog::reshape(S32 width, S32 height, BOOL called_from_parent)
{
LLFloater::reshape(width, height, called_from_parent);
diff --git a/indra/llui/llmodaldialog.h b/indra/llui/llmodaldialog.h
index 2355861f04..dcd5644f60 100644
--- a/indra/llui/llmodaldialog.h
+++ b/indra/llui/llmodaldialog.h
@@ -47,6 +47,8 @@ public:
LLModalDialog( const LLString& title, S32 width, S32 height, BOOL modal = true );
/*virtual*/ ~LLModalDialog();
+ /*virtual*/ void open(); /* Flawfinder: ignore */
+
/*virtual*/ void reshape(S32 width, S32 height, BOOL called_from_parent = 1);
/*virtual*/ void startModal();