1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-12 15:14:12 +00:00

another 10.6 check

This commit is contained in:
Mitchell Livingston 2009-09-10 00:14:22 +00:00
parent fa1fa11fdb
commit 9bb93bd92c

View file

@ -90,7 +90,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
if (firstChar == ' ' && [[[self window] windowController] conformsToProtocol: @protocol(QLPreviewPanelDataSource)]) if ([NSApp isOnSnowLeopardOrBetter] && firstChar == ' ' && [[[self window] windowController] conformsToProtocol: @protocol(QLPreviewPanelDataSource)])
{ {
if ([[QLPreviewPanel sharedPreviewPanel] isVisible]) if ([[QLPreviewPanel sharedPreviewPanel] isVisible])
[[QLPreviewPanel sharedPreviewPanel] orderOut: nil]; [[QLPreviewPanel sharedPreviewPanel] orderOut: nil];