]> granicus.if.org Git - handbrake/commitdiff
WinGui: Fix a bug in the Number Box control #1598
authorsr55 <sr55.hb@outlook.com>
Tue, 18 Sep 2018 18:59:12 +0000 (19:59 +0100)
committersr55 <sr55.hb@outlook.com>
Tue, 18 Sep 2018 19:08:40 +0000 (20:08 +0100)
win/CS/HandBrakeWPF/Controls/NumberBox.xaml.cs

index 1de00800ffd46982e5bc5ff015da5bc1fbabfd3c..477e79c37c937e19cec1cf978d650ec8a164a1f9 100644 (file)
@@ -340,7 +340,7 @@ namespace HandBrakeWPF.Controls
         /// </param>\r
         private void DownButtonMouseLeftButtonUp(object sender, MouseButtonEventArgs e)\r
         {\r
-            this.refireControl.Stop();\r
+            this.refireControl?.Stop();\r
         }\r
 \r
         /// <summary>\r
@@ -616,7 +616,7 @@ namespace HandBrakeWPF.Controls
         /// </param>\r
         private void UpButtonMouseLeftButtonUp(object sender, MouseButtonEventArgs e)\r
         {\r
-            this.refireControl.Stop();\r
+            this.refireControl?.Stop();\r
         }\r
 \r
         /// <summary>\r