]> granicus.if.org Git - handbrake/commitdiff
WinGui: Fix an issue with the EnumHelper that was causing some dropdowns not to rende...
authorsr55 <sr55.hb@outlook.com>
Wed, 22 Mar 2017 20:37:18 +0000 (20:37 +0000)
committersr55 <sr55.hb@outlook.com>
Wed, 22 Mar 2017 20:37:18 +0000 (20:37 +0000)
win/CS/HandBrakeWPF/Utilities/EnumHelper.cs

index a39713862df0789c7dd1e93253723c8662c17fc3..33469f7ba9b6f779b1382cee64fed25c22701588 100644 (file)
@@ -53,7 +53,7 @@ namespace HandBrakeWPF.Utilities
         public static string GetDisplay(T value)
         {
             FieldInfo fieldInfo = value.GetType().GetField(value.ToString());
-            ShortName[] attributes = (ShortName[])fieldInfo.GetCustomAttributes(typeof(ShortName), false);
+            DisplayName[] attributes = (DisplayName[])fieldInfo.GetCustomAttributes(typeof(DisplayName), false);
 
             return (attributes.Length > 0) ? attributes[0].Name : value.ToString();
         }