Quantcast

Reduce the change of tainting with static popups

James Whitehead II [02-13-13 - 06:11]
Reduce the change of tainting with static popups
Filename
OptionsPanel.lua
diff --git a/OptionsPanel.lua b/OptionsPanel.lua
index 695bb80..5bf9dba 100644
--- a/OptionsPanel.lua
+++ b/OptionsPanel.lua
@@ -128,6 +128,7 @@ function panel:CreateOptions()
 end

 StaticPopupDialogs["CLIQUE_CONFIRM_PROFILE_DELETE"] = {
+	preferredIndex = STATICPOPUPS_NUMDIALOGS,
     button1 = YES,
     button2 = NO,
     hideOnEscape = 1,
@@ -136,6 +137,7 @@ StaticPopupDialogs["CLIQUE_CONFIRM_PROFILE_DELETE"] = {
 }

 StaticPopupDialogs["CLIQUE_NEW_PROFILE"] = {
+	preferredIndex = STATICPOPUPS_NUMDIALOGS,
 	text = TEXT("Enter the name of a new profile you'd like to create"),
 	button1 = TEXT(OKAY),
 	button2 = TEXT(CANCEL),