From 185783d773f37831fc2666729305e235e7626c33 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 14 Jan 2022 14:20:04 +0200 Subject: DocumentWidget: Fixed possible crash during long downloads Hover can't be updated when the document is hidden. --- src/ui/documentwidget.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 58e6a11e..21ea5aba 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c @@ -392,7 +392,8 @@ static iBool isHoverAllowed_DocumentWidget_(const iDocumentWidget *d) { if (!(d->state == ready_RequestState || d->state == receivedPartialResponse_RequestState)) { return iFalse; } - if (d->flags & noHoverWhileScrolling_DocumentWidgetFlag) { + if (d->flags & (noHoverWhileScrolling_DocumentWidgetFlag | + drawDownloadCounter_DocumentWidgetFlag)) { return iFalse; } if (d->flags & pinchZoom_DocumentWidgetFlag) { -- cgit v1.2.3