]> granicus.if.org Git - handbrake/commitdiff
WinGui: Fix a crash in the Notify Icon Service when Notify Icon is not enabled.
authorsr55 <sr55.hb@outlook.com>
Fri, 17 Mar 2017 22:32:27 +0000 (22:32 +0000)
committersr55 <sr55.hb@outlook.com>
Fri, 17 Mar 2017 22:32:27 +0000 (22:32 +0000)
win/CS/HandBrakeWPF/Services/NotifyIconService.cs

index 2319f93bc45e872f3fff266b72d9f61fc68dfa08..df28b6314a49d21104046c80a19ea24f42122861 100644 (file)
@@ -19,7 +19,10 @@ namespace HandBrakeWPF.Services
 
         public void SetTooltip(string text)
         {
-            this.notifyIcon.Text = text;
+            if (this.notifyIcon != null)
+            {
+                this.notifyIcon.Text = text;
+            }
         }
     }
 }