summaryrefslogtreecommitdiffstats
path: root/win/CS
diff options
context:
space:
mode:
authorsr55 <[email protected]>2019-08-30 22:11:59 +0100
committersr55 <[email protected]>2019-08-30 22:12:27 +0100
commit6101f387c8a77de9e0a464ddd03fae96a3dc3c11 (patch)
treef77db02c9d9785e593ad3e2dd4870adadbf4f5ca /win/CS
parent93a00c7aa2ac0b9194eacfcf5bf1ceb157cd3d56 (diff)
WinGui: Treat empty string as null for Subtitle Name. #2275
Diffstat (limited to 'win/CS')
-rw-r--r--win/CS/HandBrake.Interop/Interop/Json/Encode/SubtitleTrack.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/win/CS/HandBrake.Interop/Interop/Json/Encode/SubtitleTrack.cs b/win/CS/HandBrake.Interop/Interop/Json/Encode/SubtitleTrack.cs
index 53f2a404d..4e0d79857 100644
--- a/win/CS/HandBrake.Interop/Interop/Json/Encode/SubtitleTrack.cs
+++ b/win/CS/HandBrake.Interop/Interop/Json/Encode/SubtitleTrack.cs
@@ -14,6 +14,8 @@ namespace HandBrake.Interop.Interop.Json.Encode
/// </summary>
public class SubtitleTrack
{
+ private string name;
+
/// <summary>
/// Gets or sets a value indicating whether burn.
/// </summary>
@@ -44,7 +46,11 @@ namespace HandBrake.Interop.Interop.Json.Encode
/// </summary>
public int Track { get; set; }
- public string Name { get; set; }
+ public string Name
+ {
+ get => string.IsNullOrEmpty(this.name) ? null : this.name;
+ set => this.name = value;
+ }
/// <summary>
/// Gets or sets the srt.