Changeset 4894

Show
Ignore:
Timestamp:
09/05/07 13:49:50 (1 year ago)
Author:
morris
Message:

Nevermind hostname

Fix detection of zoom mode changes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Footagehead/trunk/FHBrowserController.m

    r4892 r4894  
    257257- (void)_loadURL:(WIURL *)url selectRow:(NSInteger)row name:(NSString *)name { 
    258258        NSArray                 *files; 
    259         NSString                *subtitle; 
    260259        FHHandler               *handler; 
    261260        FHFile                  *file; 
     
    285284                [[WIEventQueue sharedQueue] addPath:[[_handler URL] path] forMode:WIEventFileWrite]; 
    286285         
    287         subtitle = [[_handler stringComponents] lastObject]; 
    288          
    289         if(!subtitle && [[_handler URL] isFileURL]) 
    290                 subtitle = [[NSHost currentHost] name]; 
    291          
    292         [[self window] setTitle:[NSApp name] withSubtitle:subtitle]; 
     286        [[self window] setTitle:[NSApp name] withSubtitle:[[_handler stringComponents] lastObject]]; 
    293287         
    294288        [self updateSpreads]; 
     
    625619 
    626620- (void)windowControllerChangedZoomMode:(NSNotification *)notification { 
    627         if([notification object] != _imageView) { 
     621        if([notification object] == _imageView) { 
    628622                [_imageView setImageScaling:[FHSettings intForKey:FHImageScalingMethod]]; 
    629623