Changeset 9232 for trunk/macosx/Controller.m
- Timestamp:
- Oct 2, 2009, 9:51:09 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Controller.m
r9197 r9232 184 184 [alert setInformativeText: NSLocalizedString(@"There is already a copy of Transmission running. " 185 185 "This copy cannot be opened until that instance is quit.", "Transmission already running alert -> message")]; 186 [alert setAlertStyle: NS WarningAlertStyle];186 [alert setAlertStyle: NSCriticalAlertStyle]; 187 187 188 188 [alert runModal]; … … 203 203 ExpandedPathToIconTransformer * iconTransformer = [[[ExpandedPathToIconTransformer alloc] init] autorelease]; 204 204 [NSValueTransformer setValueTransformer: iconTransformer forName: @"ExpandedPathToIconTransformer"]; 205 206 //cover our asses 207 if (YES || [[NSUserDefaults standardUserDefaults] boolForKey: @"WarningLegal"]) 208 { 209 NSAlert * alert = [[NSAlert alloc] init]; 210 [alert addButtonWithTitle: NSLocalizedString(@"I Accept", "Legal alert -> button")]; 211 [alert addButtonWithTitle: NSLocalizedString(@"Quit", "Legal alert -> button")]; 212 [alert setMessageText: NSLocalizedString(@"Hear ye, hear ye!", "Legal alert -> title")]; 213 [alert setInformativeText: [NSString stringWithFormat: @"%@\n\n%@", 214 NSLocalizedString(@"Transmission is a file-sharing program. When you add a torrent for download, all of its data will" 215 " also be made available to others by means of upload." 216 " And of course, any content you do choose to share is your sole responsibility.", "Legal alert -> message"), 217 NSLocalizedString(@"You probably knew this already, so we won't tell you again.", "Legal alert -> message")]]; 218 [alert setAlertStyle: NSInformationalAlertStyle]; 219 220 if ([alert runModal] == NSAlertSecondButtonReturn) 221 exit(0); 222 [alert release]; 223 224 [[NSUserDefaults standardUserDefaults] setBool: NO forKey: @"WarningLegal"]; 225 } 205 226 } 206 227 … … 1901 1922 nameDescriptor, nil]; 1902 1923 } 1924 #warning broken 1903 1925 else if ([sortType isEqualToString: SORT_TRACKER]) 1904 1926 {
Note: See TracChangeset
for help on using the changeset viewer.