This commit is contained in:
Richard Kimberly Heck 2021-01-04 01:39:01 -05:00
parent 6750724717
commit 84e8ce4ce5

View File

@ -796,23 +796,24 @@ void BufferView::bookmarkEditPosition()
void BufferView::saveBookmark(unsigned int idx) void BufferView::saveBookmark(unsigned int idx)
{ {
if (buffer().isInternal())
return;
// tentatively save bookmark, id and pos will be used to // tentatively save bookmark, id and pos will be used to
// acturately locate a bookmark in a 'live' lyx session. // acturately locate a bookmark in a 'live' lyx session.
// pit and pos will be updated with bottom level pit/pos // pit and pos will be updated with bottom level pit/pos
// when lyx exits. // when lyx exits.
if (!buffer_.isInternal()) { theSession().bookmarks().save(
theSession().bookmarks().save( buffer_.fileName(),
buffer_.fileName(), d->cursor_.bottom().pit(),
d->cursor_.bottom().pit(), d->cursor_.bottom().pos(),
d->cursor_.bottom().pos(), d->cursor_.paragraph().id(),
d->cursor_.paragraph().id(), d->cursor_.pos(),
d->cursor_.pos(), idx
idx );
); if (idx)
if (idx) // emit message signal.
// emit message signal. message(_("Save bookmark"));
message(_("Save bookmark"));
}
} }