Ticket #13: editpc_space.diff

File editpc_space.diff, 0.6 kB (added by andreasf, 1 year ago)

Patch to only append non-empty QEMU parameters

  • cocoaControlEditPC.m

    old new  
    11111111    [[thisPC objectForKey:@"Arguments"] appendFormat:@"%@",[self constructFirewallArguments]]; 
    11121112 
    11131113    /* qemu arguments */ 
    1114     [[thisPC objectForKey:@"Arguments"] appendFormat:@" %@",[textFieldArguments stringValue]]; 
     1114        if ([[textFieldArguments stringValue] length] > 0) 
     1115                [[thisPC objectForKey:@"Arguments"] appendFormat:@" %@",[textFieldArguments stringValue]]; 
    11151116 
    11161117    /* save PC */ 
    11171118    [qSender savePCConfiguration:thisPC];