mirror of
https://github.com/transmission/transmission
synced 2025-01-31 03:12:44 +00:00
fix a warning
This commit is contained in:
parent
e5b8461919
commit
1f733f9d13
1 changed files with 2 additions and 3 deletions
|
@ -27,7 +27,7 @@
|
|||
|
||||
@interface URLSheetWindowController (Private)
|
||||
|
||||
- (BOOL) updateOpenButtonForURL: (NSString *) string;
|
||||
- (void) updateOpenButtonForURL: (NSString *) string;
|
||||
|
||||
@end
|
||||
|
||||
|
@ -74,7 +74,6 @@ NSString * urlString = nil;
|
|||
openFrame.size.width = NSWidth(cancelFrame);
|
||||
|
||||
openFrame.origin.x = NSWidth([[self window] frame]) - NSWidth(openFrame) - 20.0 + 6.0; //I don't know why the extra 6.0 is needed
|
||||
|
||||
[fOpenButton setFrame: openFrame];
|
||||
|
||||
cancelFrame.origin.x = NSMinX(openFrame) - NSWidth(cancelFrame);
|
||||
|
@ -115,7 +114,7 @@ NSString * urlString = nil;
|
|||
|
||||
@implementation URLSheetWindowController (Private)
|
||||
|
||||
- (BOOL) updateOpenButtonForURL: (NSString *) string
|
||||
- (void) updateOpenButtonForURL: (NSString *) string
|
||||
{
|
||||
BOOL enable = YES;
|
||||
if ([string isEqualToString: @""])
|
||||
|
|
Loading…
Reference in a new issue