- Timestamp:
- Aug 6, 2006, 8:18:00 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Controller.m
r727 r728 655 655 title = [NSString stringWithFormat: @"Comfirm Removal of %d Transfers", selected]; 656 656 if (selected == active) 657 message = [NSString stringWithFormat: 658 @"There are %d active transfers.", active]; 657 message = [NSString stringWithFormat: @"There are %d active transfers.", active]; 659 658 else 660 message = [NSString stringWithFormat: 661 @"There are %d transfers (%d active).", selected, active]; 659 message = [NSString stringWithFormat: @"There are %d transfers (%d active).", selected, active]; 662 660 message = [message stringByAppendingString: 663 661 @" Once removed, continuing the transfers will require the torrent files." … … 1105 1103 1106 1104 NSString * searchString = [fSearchFilterField stringValue]; 1107 if (![searchString isEqualToString: @""]) 1108 { 1105 if ([searchString length] > 0) 1106 { 1107 filtering = YES; 1108 1109 1109 int i; 1110 1110 for (i = [tempTorrents count] - 1; i >= 0; i--) … … 2084 2084 //enable copy torrent file item 2085 2085 if (action == @selector(copyTorrentFile:)) 2086 {2087 2086 return canUseMenu && [fTableView numberOfSelectedRows] > 0; 2088 }2089 2087 2090 2088 return YES; … … 2189 2187 frame.origin.y -= (newHeight - frame.size.height); 2190 2188 frame.size.height = newHeight; 2191 2192 2189 return frame; 2193 2190 } … … 2210 2207 - (NSSize) windowWillResize: (NSWindow *) sender toSize: (NSSize) proposedFrameSize 2211 2208 { 2209 //only resize horizontally if autosize is enabled 2212 2210 if ([fDefaults boolForKey: @"AutoSize"]) 2213 2211 proposedFrameSize.height = [fWindow frame].size.height; … … 2218 2216 { 2219 2217 //hide search filter if it overlaps filter buttons 2220 NSRect buttonFrame = [fPauseFilterButton frame]; 2221 [fSearchFilterField setHidden: NSMaxX(buttonFrame) + 2.0 > [fSearchFilterField frame].origin.x]; 2218 [fSearchFilterField setHidden: NSMaxX([fPauseFilterButton frame]) + 2.0 > [fSearchFilterField frame].origin.x]; 2222 2219 } 2223 2220
Note: See TracChangeset
for help on using the changeset viewer.