Changeset 5192

Show
Ignore:
Timestamp:
01/21/08 11:45:53 (6 months ago)
Author:
morris
Message:

Ignore opening same directory from window title popup

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WiredClient/trunk/WCFiles.m

    r5190 r5192  
    756756 
    757757- (IBAction)openMenuItem:(id)sender { 
     758        WCFile          *file; 
     759         
    758760        if(![[self connection] isConnected]) 
    759761                return; 
    760  
    761         [self _openFile:[WCFile fileWithDirectory:[sender representedObject]] overrideNewWindow:NO]; 
     762         
     763        file = [WCFile fileWithDirectory:[sender representedObject]]; 
     764 
     765        if(![file isEqual:[self _currentPath]]) 
     766                [self _openFile:file overrideNewWindow:NO]; 
    762767} 
    763768