#3582 Quicklook command should work when inspector window is focused
This commit is contained in:
parent
320163417f
commit
37358169a9
|
@ -91,8 +91,7 @@
|
||||||
const unichar firstChar = [[event charactersIgnoringModifiers] characterAtIndex: 0];
|
const unichar firstChar = [[event charactersIgnoringModifiers] characterAtIndex: 0];
|
||||||
|
|
||||||
//don't allow quick look on add window
|
//don't allow quick look on add window
|
||||||
#warning get rid of conversion of protocol and replace with @protocol(QLPreviewPanelDataSource)
|
if ([NSApp isOnSnowLeopardOrBetter] && firstChar == ' ' && [[[self window] windowController] isKindOfClass: [InfoWindowController class]])
|
||||||
if ([NSApp isOnSnowLeopardOrBetter] && firstChar == ' ' && [[[self window] windowController] conformsToProtocol: NSProtocolFromString(@"QLPreviewPanelDataSource")])
|
|
||||||
{
|
{
|
||||||
if ([[QLPreviewPanelSL sharedPreviewPanel] isVisible])
|
if ([[QLPreviewPanelSL sharedPreviewPanel] isVisible])
|
||||||
[[QLPreviewPanelSL sharedPreviewPanel] orderOut: nil];
|
[[QLPreviewPanelSL sharedPreviewPanel] orderOut: nil];
|
||||||
|
|
Loading…
Reference in New Issue