diff --git a/macosx/Controller.m b/macosx/Controller.m index 553c76a1f..25f6210ce 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -670,8 +670,11 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy [window orderOut: nil]; } - [[QLPreviewPanel sharedPreviewPanel] updateController]; - [[QLPreviewPanel sharedPreviewPanel] orderOut: nil]; + if (quickLookOpen) + { + [[QLPreviewPanel sharedPreviewPanel] updateController]; + [[QLPreviewPanel sharedPreviewPanel] orderOut: nil]; + } [self showStatusBar: NO animate: NO]; [self showFilterBar: NO animate: NO];