From c7ace2e5ff5ee38c1efcd92a8037467132a1f0c8 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Fri, 29 Aug 2008 01:13:33 +0000 Subject: [PATCH] better [6658] --- macosx/QuickLookController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macosx/QuickLookController.m b/macosx/QuickLookController.m index c611d2f5e..23306de68 100644 --- a/macosx/QuickLookController.m +++ b/macosx/QuickLookController.m @@ -113,10 +113,10 @@ QuickLookController * fQuickLookInstance = nil; - (void) updateQuickLook { - if (!fQuickLookAvailable) + //only update when window is open or in the middle of opening (visible) + if (!fQuickLookAvailable || !([[QLPreviewPanel sharedPreviewPanel] isOpen] || [[QLPreviewPanel sharedPreviewPanel] isVisible])) return; - //if the user changes the selection while the panel is open then update the current items if (![self quickLookSelectItems]) [[QLPreviewPanel sharedPreviewPanel] closeWithEffect: 1]; } -- 2.40.0