]> granicus.if.org Git - handbrake/commitdiff
MacGui: Remove extra space in encoding status line string for 1 pass encodes.
authordynaflash <dynaflashtech@gmail.com>
Mon, 28 Jan 2013 01:23:38 +0000 (01:23 +0000)
committerdynaflash <dynaflashtech@gmail.com>
Mon, 28 Jan 2013 01:23:38 +0000 (01:23 +0000)
- Patch by sanmarcos Thanks!
- Addresses https://reviews.handbrake.fr/r/422/

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

macosx/Controller.m

index 8c2eba628481ee7f9aaf90cdf673900e8f96ad73..13b324aca76c738e5991827bd5e89674f831fc51 100644 (file)
@@ -1029,7 +1029,15 @@ static NSString *        ChooseSourceIdentifier             = @"Choose Source It
                 pass_desc = @"";
             }
             
-                       string = [NSMutableString stringWithFormat: NSLocalizedString( @"Encoding: %@ \nPass %d %@ of %d, %.2f %%", @"" ), currentQueueEncodeNameString, p.job_cur, pass_desc, p.job_count, 100.0 * p.progress];
+            
+            if ([pass_desc length])
+            {
+                string = [NSMutableString stringWithFormat: NSLocalizedString( @"Encoding: %@ \nPass %d %@ of %d, %.2f %%", @"" ), currentQueueEncodeNameString, p.job_cur, pass_desc, p.job_count, 100.0 * p.progress];
+            }
+            else
+            {
+                string = [NSMutableString stringWithFormat: NSLocalizedString( @"Encoding: %@ \nPass %d of %d, %.2f %%", @"" ), currentQueueEncodeNameString, p.job_cur, p.job_count, 100.0 * p.progress];
+            }
             
                        if( p.seconds > -1 )
             {