From: sr55 Date: Sat, 26 Mar 2011 16:19:52 +0000 (+0000) Subject: WinGui: X-Git-Tag: 0.9.6~582 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3dbaa1fabfb4b98b46a2d0eed6a426c06bd59b98;p=handbrake WinGui: - 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 --- diff --git a/win/CS/Functions/QueryGenerator.cs b/win/CS/Functions/QueryGenerator.cs index 97499962b..ce9f6f00b 100644 --- a/win/CS/Functions/QueryGenerator.cs +++ b/win/CS/Functions/QueryGenerator.cs @@ -545,12 +545,12 @@ namespace Handbrake.Functions switch (mainWindow.drp_videoEncoder.SelectedIndex) { case 0: // ffmpeg - advancedOptions = string.IsNullOrEmpty(mainWindow.x264Panel.X264Query) + advancedOptions = string.IsNullOrEmpty(mainWindow.x264Panel.X264Query.Trim()) ? string.Empty : mainWindow.x264Panel.X264Query; break; case 1: // x264 - advancedOptions = string.IsNullOrEmpty(mainWindow.x264Panel.X264Query) + advancedOptions = string.IsNullOrEmpty(mainWindow.x264Panel.X264Query.Trim()) ? string.Empty : mainWindow.x264Panel.X264Query; break;