Changeset 2199


Ignore:
Timestamp:
Jun 25, 2007, 10:35:18 PM (14 years ago)
Author:
livings124
Message:

apply patch from #324

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r2198 r2199  
    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];
     
    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];
Note: See TracChangeset for help on using the changeset viewer.