From 99161d6b039fd5f569d33cfef247012add1aadfd Mon Sep 17 00:00:00 2001 From: poire-z Date: Tue, 24 Oct 2017 15:22:10 +0200 Subject: [PATCH] Wiki save as epub: close highlight menu when switching document (#3417) --- frontend/ui/widget/dictquicklookup.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/ui/widget/dictquicklookup.lua b/frontend/ui/widget/dictquicklookup.lua index a4d1cf803..9ae8ec97a 100644 --- a/frontend/ui/widget/dictquicklookup.lua +++ b/frontend/ui/widget/dictquicklookup.lua @@ -298,6 +298,10 @@ function DictQuickLookup:update() local ReaderUI = require("apps/reader/readerui") local reader = ReaderUI:_getRunningInstance() if reader then + -- close Highlight menu if any still shown + if reader.highlight then + reader.highlight:onClose() + end reader:onClose() end ReaderUI:showReader(epub_path)