diff --git a/macosx/InfoWindowController.m b/macosx/InfoWindowController.m index 3ef0ae37f..f79579406 100644 --- a/macosx/InfoWindowController.m +++ b/macosx/InfoWindowController.m @@ -58,11 +58,10 @@ [window setBecomesKeyOnlyIfNeeded: YES]; [window setFrameAutosaveName: @"InspectorWindowFrame"]; - [window setFrameUsingName: @"InspectorWindowFrame" force: YES]; + [window setFrameUsingName: @"InspectorWindowFrame"]; NSRect frame = [window frame]; - float difference = TAB_INFO_HEIGHT - [[[fTabView selectedTabViewItem] - view] frame].size.height; + float difference = TAB_INFO_HEIGHT - [[[fTabView selectedTabViewItem] view] frame].size.height; frame.origin.y -= difference; frame.size.height += difference; [window setFrame: frame display: YES]; diff --git a/macosx/Torrent.m b/macosx/Torrent.m index ff33c4c40..ee60e7ab3 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -589,12 +589,9 @@ - (void) trashFile: (NSString *) path { - if( ![[NSWorkspace sharedWorkspace] performFileOperation: - NSWorkspaceRecycleOperation source: - [path stringByDeletingLastPathComponent] - destination: @"" - files: [NSArray arrayWithObject: [path lastPathComponent]] - tag: nil] ) + if (![[NSWorkspace sharedWorkspace] performFileOperation: NSWorkspaceRecycleOperation + source: [path stringByDeletingLastPathComponent] destination: @"" + files: [NSArray arrayWithObject: [path lastPathComponent]] tag: nil]) { /* We can't move it to the trash, let's try just to delete it (will work if it is on a remote volume) */