]> granicus.if.org Git - python/commitdiff
Fix for bug #1570284
authorRonald Oussoren <ronaldoussoren@mac.com>
Sun, 8 Oct 2006 17:40:02 +0000 (17:40 +0000)
committerRonald Oussoren <ronaldoussoren@mac.com>
Sun, 8 Oct 2006 17:40:02 +0000 (17:40 +0000)
Mac/PythonLauncher/FileSettings.m

index ba375ba7b096c81f50ea4fa71ab88e4314c40894..1f3695eec17135acd22be2647717ddda4813c250 100755 (executable)
             [NSNumber numberWithBool: inspect], @"inspect",
             [NSNumber numberWithBool: optimize], @"optimize",
             [NSNumber numberWithBool: nosite], @"nosite",
-            [NSNumber numberWithBool: nosite], @"nosite",
+            [NSNumber numberWithBool: tabs], @"tabs",
             others, @"others",
             scriptargs, @"scriptargs",
             [NSNumber numberWithBool: with_terminal], @"with_terminal",
     if (value) optimize = [value boolValue];
     value = [dict objectForKey: @"nosite"];
     if (value) nosite = [value boolValue];
-    value = [dict objectForKey: @"nosite"];
+    value = [dict objectForKey: @"tabs"];
     if (value) tabs = [value boolValue];
     value = [dict objectForKey: @"others"];
     if (value) others = [value retain];
         tabs?" -t":"",
         others,
         [self _replaceSingleQuotes:script],
-        scriptargs,
+        scriptargs ? scriptargs : @"",
         with_terminal? "&& echo Exit status: $? && exit 1" : " &"];
 }