From b7785753c6b55f7337934f08e6b764df287709b5 Mon Sep 17 00:00:00 2001 From: poire-z Date: Fri, 6 Oct 2017 15:58:58 +0200 Subject: [PATCH] [fix] Crash on highlight in some situations (#3306) --- frontend/apps/reader/modules/readerhighlight.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/apps/reader/modules/readerhighlight.lua b/frontend/apps/reader/modules/readerhighlight.lua index 6137c9757..9b64c2f67 100644 --- a/frontend/apps/reader/modules/readerhighlight.lua +++ b/frontend/apps/reader/modules/readerhighlight.lua @@ -402,7 +402,9 @@ function ReaderHighlight:onHoldRelease() callback = function() UIManager:scheduleIn(0.1, function() self:lookupWikipedia() - self:onClose() + -- We don't call self:onClose(), we need the highlight + -- to still be there, as we may Highlight it from the + -- dict lookup widget end) end, }, @@ -410,7 +412,7 @@ function ReaderHighlight:onHoldRelease() text = _("Dictionary"), callback = function() self:onHighlightDictLookup() - self:onClose() + -- We don't call self:onClose(), same reason as above end, }, },