From 1888142cab8ce7368c38d3f3ce745c46b70d423c Mon Sep 17 00:00:00 2001 From: Rider Linden Date: Tue, 22 Sep 2015 16:58:00 -0700 Subject: Reuse old login panel... --- indra/newview/llpanellogin.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'indra/newview') diff --git a/indra/newview/llpanellogin.cpp b/indra/newview/llpanellogin.cpp index bd23478694..8c5ad133f5 100755 --- a/indra/newview/llpanellogin.cpp +++ b/indra/newview/llpanellogin.cpp @@ -434,6 +434,12 @@ void LLPanelLogin::show(const LLRect &rect, void (*callback)(S32 option, void* user_data), void* callback_data) { +#if 1 + if (!LLPanelLogin::sInstance) + { + new LLPanelLogin(rect, callback, callback_data); + } +#else // instance management if (LLPanelLogin::sInstance) { @@ -445,6 +451,7 @@ void LLPanelLogin::show(const LLRect &rect, } new LLPanelLogin(rect, callback, callback_data); +#endif if( !gFocusMgr.getKeyboardFocus() ) { -- cgit v1.2.3