Ticket #234: infoWindow_patch.diff

File infoWindow_patch.diff, 931 bytes (added by Waldorf, 14 years ago)
  • InfoWindowController.m

     
    10851085   
    10861086    NSTextField * field = upload ? fUploadLimitField : fDownloadLimitField;
    10871087    [field setHidden: setting != NSOnState];
     1088    if (setting == NSOnState)
     1089        {
     1090                [field selectText:self];
     1091                [[self window] makeKeyAndOrderFront:self];
     1092        }
     1093
    10881094    NSTextField * label = upload ? fUploadLimitLabel : fDownloadLimitLabel;
    10891095    [label setHidden: setting != NSOnState];
    10901096}
     
    11311137        [torrent setRatioSetting: setting];
    11321138   
    11331139    [fRatioLimitField setHidden: setting != NSOnState];
     1140    if (setting == NSOnState)
     1141        {
     1142                [fRatioLimitField selectText:self];
     1143                [[self window] makeKeyAndOrderFront:self];
     1144        }
    11341145   
    11351146    [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateUI" object: nil];
    11361147}