summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2022-01-14 14:20:04 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2022-01-14 14:20:04 +0200
commit185783d773f37831fc2666729305e235e7626c33 (patch)
treed29bd6fc813cc1a0f1e40becf61ed8b003723367
parente912bd13b95b3bb93becccfe45cf22f574afce9e (diff)
DocumentWidget: Fixed possible crash during long downloads
Hover can't be updated when the document is hidden.
-rw-r--r--src/ui/documentwidget.c3
1 files changed, 2 insertions, 1 deletions
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) {
392 if (!(d->state == ready_RequestState || d->state == receivedPartialResponse_RequestState)) { 392 if (!(d->state == ready_RequestState || d->state == receivedPartialResponse_RequestState)) {
393 return iFalse; 393 return iFalse;
394 } 394 }
395 if (d->flags & noHoverWhileScrolling_DocumentWidgetFlag) { 395 if (d->flags & (noHoverWhileScrolling_DocumentWidgetFlag |
396 drawDownloadCounter_DocumentWidgetFlag)) {
396 return iFalse; 397 return iFalse;
397 } 398 }
398 if (d->flags & pinchZoom_DocumentWidgetFlag) { 399 if (d->flags & pinchZoom_DocumentWidgetFlag) {