summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2017-03-17 22:32:27 +0000
committersr55 <[email protected]>2017-03-17 22:32:27 +0000
commit6c6570a326e12edb04498b3272b916eb8d431319 (patch)
tree8a83e4ab6f5c4caecd3b082fc6db6ceaf561a69e
parent82a75bd3d9d5db5432275e9e83e1b65e7b7bdbb6 (diff)
WinGui: Fix a crash in the Notify Icon Service when Notify Icon is not enabled.
-rw-r--r--win/CS/HandBrakeWPF/Services/NotifyIconService.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/Services/NotifyIconService.cs b/win/CS/HandBrakeWPF/Services/NotifyIconService.cs
index 2319f93bc..df28b6314 100644
--- a/win/CS/HandBrakeWPF/Services/NotifyIconService.cs
+++ b/win/CS/HandBrakeWPF/Services/NotifyIconService.cs
@@ -19,7 +19,10 @@ namespace HandBrakeWPF.Services
public void SetTooltip(string text)
{
- this.notifyIcon.Text = text;
+ if (this.notifyIcon != null)
+ {
+ this.notifyIcon.Text = text;
+ }
}
}
}