]> granicus.if.org Git - handbrake/commitdiff
WinGui:
authorsr55 <sr55.hb@outlook.com>
Sat, 26 Mar 2011 16:19:52 +0000 (16:19 +0000)
committersr55 <sr55.hb@outlook.com>
Sat, 26 Mar 2011 16:19:52 +0000 (16:19 +0000)
- Trim the contents of the advanced options box. Prevents -x being used with only spaces

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3881 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/CS/Functions/QueryGenerator.cs

index 97499962bb823bb35ac4735f97a3d54884e0b491..ce9f6f00b5697659f1b51a27441ea66ccf5e9549 100644 (file)
@@ -545,12 +545,12 @@ namespace Handbrake.Functions
             switch (mainWindow.drp_videoEncoder.SelectedIndex)\r
             {\r
                 case 0: // ffmpeg\r
-                    advancedOptions = string.IsNullOrEmpty(mainWindow.x264Panel.X264Query)\r
+                    advancedOptions = string.IsNullOrEmpty(mainWindow.x264Panel.X264Query.Trim())\r
                         ? string.Empty\r
                         : mainWindow.x264Panel.X264Query;\r
                     break;\r
                 case 1: // x264\r
-                    advancedOptions = string.IsNullOrEmpty(mainWindow.x264Panel.X264Query)\r
+                    advancedOptions = string.IsNullOrEmpty(mainWindow.x264Panel.X264Query.Trim())\r
                         ? string.Empty\r
                         : mainWindow.x264Panel.X264Query;\r
                     break;\r