]> granicus.if.org Git - transmission/commitdiff
better [6658]
authorMitchell Livingston <livings124@transmissionbt.com>
Fri, 29 Aug 2008 01:13:33 +0000 (01:13 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Fri, 29 Aug 2008 01:13:33 +0000 (01:13 +0000)
macosx/QuickLookController.m

index c611d2f5e4ba8f96db37c5825b6e807ec4894bf3..23306de686a4cc0834cc348f2cdc2ee0e926cff2 100644 (file)
@@ -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];
 }