diff options
author | sr55 <[email protected]> | 2013-08-22 18:12:20 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2013-08-22 18:12:20 +0000 |
commit | 2f353d02a675d3d99883a8e6b6d8bacd7cc31c5a (patch) | |
tree | 3a5a34a7574d4bfc5a8109683016ee489b0bf280 /win/CS/HandBrakeWPF/Converters/Audio | |
parent | 723ce53bb4e6fb48c04c0e9fc9ab72e3270d3b29 (diff) |
WinGui: Replace the MenuButtons with SplitButtons on the Audio/Subtitle tabs.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5734 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Converters/Audio')
-rw-r--r-- | win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs b/win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs index 27cb2e5de..0b1c2258d 100644 --- a/win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs +++ b/win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs @@ -73,7 +73,12 @@ namespace HandBrakeWPF.Converters.Audio return EnumHelper<AudioEncoder>.GetEnumDisplayValuesSubset(encoders);
}
- return EnumHelper<AudioEncoder>.GetDisplay((AudioEncoder)values[0]);
+ if (values.Any())
+ {
+ return EnumHelper<AudioEncoder>.GetDisplay((AudioEncoder)values[0]);
+ }
+
+ return EnumHelper<AudioEncoder>.GetDisplay(AudioEncoder.ffaac);
}
/// <summary>
|