Skip to content

Commit 3d969fe

Browse files
committed
updateQuicklookForce: shouldn't do anything if the sharedPreviewPanel hasn't been loaded.
1 parent 0a13f5a commit 3d969fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Controllers/PBGitHistoryController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ - (IBAction) toggleQLPreviewPanel:(id)sender
433433

434434
- (void) updateQuicklookForce:(BOOL)force
435435
{
436-
if (!force && ![[QLPreviewPanel sharedPreviewPanel] isVisible])
436+
if (!force && (![QLPreviewPanel sharedPreviewPanelExists] || ![[QLPreviewPanel sharedPreviewPanel] isVisible]))
437437
return;
438438

439439
[[QLPreviewPanel sharedPreviewPanel] reloadData];

0 commit comments

Comments
 (0)