mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
ReaderHighlight: Don't try to close a non-existent widget in onClose
This commit is contained in:
@@ -2208,8 +2208,10 @@ function ReaderHighlight:onSaveSettings()
|
||||
end
|
||||
|
||||
function ReaderHighlight:onClose()
|
||||
UIManager:close(self.highlight_dialog)
|
||||
self.highlight_dialog = nil
|
||||
if self.highlight_dialog then
|
||||
UIManager:close(self.highlight_dialog)
|
||||
self.highlight_dialog = nil
|
||||
end
|
||||
-- clear highlighted text
|
||||
self:clear()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user