From 3dbaa1fabfb4b98b46a2d0eed6a426c06bd59b98 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 26 Mar 2011 16:19:52 +0000 Subject: 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 --- win/CS/Functions/QueryGenerator.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'win/CS') 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; -- cgit v1.2.3