Ignore:
Timestamp:
May 26, 2009, 12:29:36 AM (13 years ago)
Author:
livings124
Message:

#1942 Space in Add Torrent dialog box opens Quick Look on selected torrent in main window

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/FileOutlineView.m

    r7659 r8533  
    2323 *****************************************************************************/
    2424
     25#import "InfoWindowController.h"
    2526#import "FileOutlineView.h"
    2627#import "FileNameCell.h"
     
    8788- (void) keyDown: (NSEvent *) event
    8889{
    89     unichar firstChar = [[event charactersIgnoringModifiers] characterAtIndex: 0];
    90     if (firstChar == ' ')
     90    const unichar firstChar = [[event charactersIgnoringModifiers] characterAtIndex: 0];
     91   
     92    //don't allow quick look on add window
     93    if (firstChar == ' ' && [[[self window] windowController] isKindOfClass: [InfoWindowController class]])
    9194        [[QuickLookController quickLook] toggleQuickLook];
    9295    else if (firstChar == NSRightArrowFunctionKey)
Note: See TracChangeset for help on using the changeset viewer.