]> git.sesse.net Git - vlc/commitdiff
* do only show the destination of the first item on the summary page when transcoding...
authorFelix Paul Kühne <fkuehne@videolan.org>
Fri, 31 Mar 2006 22:23:53 +0000 (22:23 +0000)
committerFelix Paul Kühne <fkuehne@videolan.org>
Fri, 31 Mar 2006 22:23:53 +0000 (22:23 +0000)
modules/gui/macosx/wizard.m

index 1080874d47790c214d675f1538c8b6d0b10ec771..f69abf0736646563fbe77363124e3e771e79e8c6 100644 (file)
@@ -1419,8 +1419,15 @@ static VLCWizard *_o_sharedInstance = nil;
         [o_t8_fld_destination setStringValue: @"-"];
         [o_t8_fld_ttl setStringValue: @"-"];
         [o_t8_fld_sap setStringValue: @"-"];
-        [o_t8_fld_saveFileTo setStringValue: [o_userSelections objectForKey: \
-            @"trnscdFilePath"]];
+        /* do only show the destination of the first item and add a counter, if needed */
+        if( [[o_userSelections objectForKey: @"trnscdFilePath"] count] > 1 )
+            [o_t8_fld_saveFileTo setStringValue: \
+                [NSString stringWithFormat: @"%@ (+ %i)", \
+                [[o_userSelections objectForKey: @"trnscdFilePath"] objectAtIndex:0], \
+                ([[o_userSelections objectForKey: @"trnscdFilePath"] count] - 1)]];
+        else
+            [o_t8_fld_saveFileTo setStringValue: \
+                [[o_userSelections objectForKey: @"trnscdFilePath"] objectAtIndex:0]];
     }
     [o_t8_fld_encapFormat setStringValue: [[o_encapFormats objectAtIndex: \
         [[o_userSelections objectForKey:@"encapFormat"] intValue]] objectAtIndex:1]];