Changeset 9431
- Timestamp:
- Oct 29, 2009, 1:44:54 AM (13 years ago)
- Location:
- trunk/macosx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Controller.m
r9422 r9431 833 833 - (void) openFiles: (NSArray *) filenames addType: (addType) type forcePath: (NSString *) path 834 834 { 835 #warning checks could probably be removed, since location is checked when starting836 if (!path && [fDefaults boolForKey: @"UseIncompleteDownloadFolder"]837 && access([[[fDefaults stringForKey: @"IncompleteDownloadFolder"] stringByExpandingTildeInPath] UTF8String], 0))838 {839 NSOpenPanel * panel = [NSOpenPanel openPanel];840 841 [panel setPrompt: NSLocalizedString(@"Select", "Default incomplete folder cannot be used alert -> prompt")];842 [panel setAllowsMultipleSelection: NO];843 [panel setCanChooseFiles: NO];844 [panel setCanChooseDirectories: YES];845 [panel setCanCreateDirectories: YES];846 847 [panel setMessage: NSLocalizedString(@"The incomplete folder cannot be used. Choose a new location or cancel for none.",848 "Default incomplete folder cannot be used alert -> message")];849 850 NSDictionary * dict = [[NSDictionary alloc] initWithObjectsAndKeys: filenames, @"Filenames",851 [NSNumber numberWithInt: type], @"AddType", nil];852 853 [panel beginSheetForDirectory: nil file: nil types: nil modalForWindow: fWindow modalDelegate: self854 didEndSelector: @selector(incompleteChoiceClosed:returnCode:contextInfo:) contextInfo: dict];855 return;856 }857 858 if (!path && [fDefaults boolForKey: @"DownloadLocationConstant"]859 && access([[[fDefaults stringForKey: @"DownloadFolder"] stringByExpandingTildeInPath] UTF8String], 0))860 {861 NSOpenPanel * panel = [NSOpenPanel openPanel];862 863 [panel setPrompt: NSLocalizedString(@"Select", "Default folder cannot be used alert -> prompt")];864 [panel setAllowsMultipleSelection: NO];865 [panel setCanChooseFiles: NO];866 [panel setCanChooseDirectories: YES];867 [panel setCanCreateDirectories: YES];868 869 [panel setMessage: NSLocalizedString(@"The download folder cannot be used. Choose a new location.",870 "Default folder cannot be used alert -> message")];871 872 NSDictionary * dict = [[NSDictionary alloc] initWithObjectsAndKeys: filenames, @"Filenames",873 [NSNumber numberWithInt: type], @"AddType", nil];874 875 [panel beginSheetForDirectory: nil file: nil types: nil modalForWindow: fWindow modalDelegate: self876 didEndSelector: @selector(downloadChoiceClosed:returnCode:contextInfo:) contextInfo: dict];877 return;878 }879 880 835 BOOL deleteTorrentFile, canToggleDelete = NO; 881 836 switch (type) … … 1928 1883 [self sortTorrentsIgnoreSelected]; //actually sort 1929 1884 1930 [fTableView selectValues: selectedValues];1885 //[fTableView selectValues: selectedValues]; 1931 1886 } 1932 1887 -
trunk/macosx/InfoWindowController.m
r9430 r9431 1035 1035 } 1036 1036 1037 //determing status strings from flags 1037 //determing status strings from flags 1038 1038 NSMutableArray * statusArray = [NSMutableArray arrayWithCapacity: 6]; 1039 1039 NSString * flags = [peer objectForKey: @"Flags"]; … … 1531 1531 [upDownComponents componentsJoinedByString: @", "]]; 1532 1532 } 1533 else 1534 connectedText = [connectedText stringByAppendingFormat: @"\n%@", knownString]; 1533 1535 1534 1536 [fConnectedPeersField setStringValue: connectedText];
Note: See TracChangeset
for help on using the changeset viewer.