diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llui/llmodaldialog.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/linden/indra/llui/llmodaldialog.cpp b/linden/indra/llui/llmodaldialog.cpp index 72a7fcb..ff4858f 100644 --- a/linden/indra/llui/llmodaldialog.cpp +++ b/linden/indra/llui/llmodaldialog.cpp | |||
@@ -12,12 +12,12 @@ | |||
12 | * ("GPL"), unless you have obtained a separate licensing agreement | 12 | * ("GPL"), unless you have obtained a separate licensing agreement |
13 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 13 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
15 | * online at http://secondlife.com/developers/opensource/gplv2 | 15 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 |
16 | * | 16 | * |
17 | * There are special exceptions to the terms and conditions of the GPL as | 17 | * There are special exceptions to the terms and conditions of the GPL as |
18 | * it is applied to this Source Code. View the full text of the exception | 18 | * it is applied to this Source Code. View the full text of the exception |
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 19 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
20 | * online at http://secondlife.com/developers/opensource/flossexception | 20 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception |
21 | * | 21 | * |
22 | * By copying, modifying or distributing this software, you acknowledge | 22 | * By copying, modifying or distributing this software, you acknowledge |
23 | * that you have read and understood your obligations described above, | 23 | * that you have read and understood your obligations described above, |
@@ -70,6 +70,16 @@ LLModalDialog::~LLModalDialog() | |||
70 | } | 70 | } |
71 | } | 71 | } |
72 | 72 | ||
73 | // virtual | ||
74 | void LLModalDialog::open() /* Flawfinder: ignore */ | ||
75 | { | ||
76 | // SJB: Hack! Make sure we don't ever host a modal dialog | ||
77 | LLMultiFloater* thost = LLFloater::sHostp; | ||
78 | LLFloater::sHostp = NULL; | ||
79 | LLFloater::open(); | ||
80 | LLFloater::sHostp = thost; | ||
81 | } | ||
82 | |||
73 | void LLModalDialog::reshape(S32 width, S32 height, BOOL called_from_parent) | 83 | void LLModalDialog::reshape(S32 width, S32 height, BOOL called_from_parent) |
74 | { | 84 | { |
75 | LLFloater::reshape(width, height, called_from_parent); | 85 | LLFloater::reshape(width, height, called_from_parent); |
@@ -287,7 +297,7 @@ void LLModalDialog::onAppFocusLost() | |||
287 | 297 | ||
288 | if( gFocusMgr.childHasKeyboardFocus( instance ) ) | 298 | if( gFocusMgr.childHasKeyboardFocus( instance ) ) |
289 | { | 299 | { |
290 | gFocusMgr.setKeyboardFocus( NULL, NULL ); | 300 | gFocusMgr.setKeyboardFocus( NULL ); |
291 | } | 301 | } |
292 | } | 302 | } |
293 | } | 303 | } |