From afd12a6e784574e69ef3b3e7cac14573fe7c3197 Mon Sep 17 00:00:00 2001
From: Jonathan Yap <jhwelch@gmail.com>
Date: Wed, 3 Dec 2014 09:38:10 -0500
Subject: [PATCH] STORM-2082 Send signal to pulldown panel to refresh itself

---
 indra/newview/llpanelpresetspulldown.cpp | 2 --
 indra/newview/llpresetsmanager.cpp       | 3 +++
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/indra/newview/llpanelpresetspulldown.cpp b/indra/newview/llpanelpresetspulldown.cpp
index cd049712e1d..093b5caad98 100644
--- a/indra/newview/llpanelpresetspulldown.cpp
+++ b/indra/newview/llpanelpresetspulldown.cpp
@@ -150,8 +150,6 @@ void LLPanelPresetsPulldown::onRowClick(const LLSD& user_data)
 				instance->refreshEnabledGraphics();
 			}
 			setVisible(FALSE);
-			// This line shouldn't be necessary but it is.
-			populatePanel();
 		}
 	}
 }
diff --git a/indra/newview/llpresetsmanager.cpp b/indra/newview/llpresetsmanager.cpp
index ddcd54162c2..260f2c9547f 100644
--- a/indra/newview/llpresetsmanager.cpp
+++ b/indra/newview/llpresetsmanager.cpp
@@ -242,6 +242,9 @@ void LLPresetsManager::loadPreset(const std::string& subdirectory, const std::st
 	std::string full_path(getPresetsDir(subdirectory) + gDirUtilp->getDirDelimiter() + LLURI::escape(name) + ".xml");
 
 	gSavedSettings.loadFromFile(full_path, false, true);
+
+	// signal interested parties
+	mPresetListChangeSignal();
 }
 
 bool LLPresetsManager::deletePreset(const std::string& subdirectory, const std::string& name)
-- 
GitLab