mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Viewer: When creating a new bookmark ifthere is selected text use it as the default bookmark title. Fixes #1854611 [Feature request: Highlighter and Bookmark](https://bugs.launchpad.net/calibre/+bug/1854611)
This commit is contained in:
parent
0abd0d88ee
commit
ccce39da50
@ -276,7 +276,7 @@ class BookmarkManager(QWidget):
|
||||
break
|
||||
|
||||
title, ok = QInputDialog.getText(self, _('Add bookmark'),
|
||||
_('Enter title for bookmark:'), text=default_title)
|
||||
_('Enter title for bookmark:'), text=pos_data.get('selected_text') or default_title)
|
||||
title = unicode_type(title).strip()
|
||||
if not ok or not title:
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user