From 7a88b9a8a4d3be42dbbb3db12d4959b2ac2edfb2 Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Sun, 23 Jun 2013 22:16:40 -0400 Subject: [PATCH] Fix the issue reported in group chat in which closing preferences with Device Settings open does not return to local voice --- indra/newview/llpanelvoicedevicesettings.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/indra/newview/llpanelvoicedevicesettings.cpp b/indra/newview/llpanelvoicedevicesettings.cpp index 77a08d183..f890e55f8 100644 --- a/indra/newview/llpanelvoicedevicesettings.cpp +++ b/indra/newview/llpanelvoicedevicesettings.cpp @@ -60,6 +60,7 @@ LLPanelVoiceDeviceSettings::LLPanelVoiceDeviceSettings() LLPanelVoiceDeviceSettings::~LLPanelVoiceDeviceSettings() { + if (getVisible()) cleanup(); // Singu Note: If we're still visible, we'll need to cleanup } BOOL LLPanelVoiceDeviceSettings::postBuild()