one less warning

This commit is contained in:
Mitchell Livingston 2009-10-25 16:31:28 +00:00
parent a84da10766
commit cfbcdd8832
2 changed files with 4 additions and 2 deletions

View File

@ -1377,6 +1377,9 @@ typedef enum
NSString * location = [torrent dataLocation];
[fDataLocationField setStringValue: location ? [location stringByAbbreviatingWithTildeInPath] : @""];
[fDataLocationField setToolTip: location ? location : @""];
[fDataLocationField setSelectable: location != nil];
[fRevealDataButton setHidden: !location];
}
- (void) updateInfoActivity

View File

@ -511,7 +511,7 @@ int trashDataFile(const char * filename)
[[alert suppressionButton] setTitle: NSLocalizedString(@"Do not check disk space again",
"Torrent disk space alert -> button")];
NSInteger result = [alert runModal];
const NSInteger result = [alert runModal];
if ([[alert suppressionButton] state] == NSOnState)
[fDefaults setBool: NO forKey: @"WarningRemainingSpace"];
[alert release];
@ -669,7 +669,6 @@ int trashDataFile(const char * filename)
return [NSString stringWithUTF8String: fInfo->torrent];
}
#warning returning nil causes the info field to not change - check all uses of data location
- (NSString *) dataLocation
{
if ([self isFolder])