diff --git a/src/calibre/ebooks/oeb/display/cfi.coffee b/src/calibre/ebooks/oeb/display/cfi.coffee index ab4d456994..5a6d5751a0 100644 --- a/src/calibre/ebooks/oeb/display/cfi.coffee +++ b/src/calibre/ebooks/oeb/display/cfi.coffee @@ -102,7 +102,7 @@ viewport_to_document = (x, y, doc=window?.document) -> # {{{ return [x, y] # }}} -# Equivalent for caretRangeFromPoint for non WebKit browsers {{{ +# Convert point to character offset {{{ range_has_point = (range, x, y) -> for rect in range.getClientRects() if (rect.left <= x <= rect.right) and (rect.top <= y <= rect.bottom) diff --git a/src/calibre/gui2/preferences/main.py b/src/calibre/gui2/preferences/main.py index 65566c1107..cc35c866bd 100644 --- a/src/calibre/gui2/preferences/main.py +++ b/src/calibre/gui2/preferences/main.py @@ -338,7 +338,7 @@ class Preferences(QMainWindow): d = warning_dialog(self, _('Restart needed'), msg, show_copy_button=False) - b = d.bb.addButton(_('Restart calibre'), d.bb.AcceptRole) + b = d.bb.addButton(_('Restart calibre now'), d.bb.AcceptRole) b.setIcon(QIcon(I('lt.png'))) d.do_restart = False def rf():