summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-03-26 16:19:52 +0000
committersr55 <[email protected]>2011-03-26 16:19:52 +0000
commit3dbaa1fabfb4b98b46a2d0eed6a426c06bd59b98 (patch)
tree9890e0a12a4367c015ec224c64895fbbe45c593d /win
parent16f0d75e4648bf14a3163e97fba9905ac79607e8 (diff)
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
Diffstat (limited to 'win')
-rw-r--r--win/CS/Functions/QueryGenerator.cs4
1 files changed, 2 insertions, 2 deletions
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;