This commit is contained in:
Kovid Goyal 2012-01-20 16:13:42 +05:30
parent f22518cd8c
commit fd0bb3475e
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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():