]> granicus.if.org Git - transmission/commitdiff
Move the inspector Rename File context menu item to the bottom of the list.
authorMitchell Livingston <livings124@transmissionbt.com>
Sat, 26 Jan 2013 22:39:32 +0000 (22:39 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Sat, 26 Jan 2013 22:39:32 +0000 (22:39 +0000)
macosx/FileOutlineController.m

index 8659f66acfeca32558bc3fe55746650bcb058332..bf026932fee6391abad9c368ef033496984060dd 100644 (file)
@@ -562,17 +562,8 @@ typedef enum
 {
     NSMenu * menu = [[NSMenu alloc] initWithTitle: @"File Outline Menu"];
     
-    //rename
-    NSMenuItem * item = [[NSMenuItem alloc] initWithTitle: [NSLocalizedString(@"Rename File", "File Outline -> Menu") stringByAppendingEllipsis]
-                                                   action: @selector(renameSelected:) keyEquivalent: @""];
-    [item setTarget: self];
-    [menu addItem: item];
-    [item release];
-    
-    [menu addItem: [NSMenuItem separatorItem]];
-    
     //check and uncheck
-    item = [[NSMenuItem alloc] initWithTitle: NSLocalizedString(@"Check Selected", "File Outline -> Menu")
+    NSMenuItem * item = [[NSMenuItem alloc] initWithTitle: NSLocalizedString(@"Check Selected", "File Outline -> Menu")
             action: @selector(setCheck:) keyEquivalent: @""];
     [item setTarget: self];
     [item setTag: FILE_CHECK_TAG];
@@ -632,7 +623,16 @@ typedef enum
     
     //reveal in finder
     item = [[NSMenuItem alloc] initWithTitle: NSLocalizedString(@"Show in Finder", "File Outline -> Menu")
-            action: @selector(revealFile:) keyEquivalent: @""];
+                                      action: @selector(revealFile:) keyEquivalent: @""];
+    [item setTarget: self];
+    [menu addItem: item];
+    [item release];
+    
+    [menu addItem: [NSMenuItem separatorItem]];
+    
+    //rename
+    item = [[NSMenuItem alloc] initWithTitle: [NSLocalizedString(@"Rename File", "File Outline -> Menu") stringByAppendingEllipsis]
+                                                   action: @selector(renameSelected:) keyEquivalent: @""];
     [item setTarget: self];
     [menu addItem: item];
     [item release];