]> git.lyx.org Git - features.git/commitdiff
No more bookmarks in internal buffers (addresses #6605).
authorTommaso Cucinotta <tommaso@lyx.org>
Tue, 23 Mar 2010 00:45:37 +0000 (00:45 +0000)
committerTommaso Cucinotta <tommaso@lyx.org>
Tue, 23 Mar 2010 00:45:37 +0000 (00:45 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33842 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.cpp

index 3ad78813c500f6f2ea9f34b0c4a5e091ecca28fe..7af5c404751d15ceb1abe616bf3f53c82fdc3fea 100644 (file)
@@ -696,17 +696,19 @@ void BufferView::saveBookmark(unsigned int idx)
        // acturately locate a bookmark in a 'live' lyx session.
        // pit and pos will be updated with bottom level pit/pos
        // when lyx exits.
-       theSession().bookmarks().save(
-               buffer_.fileName(),
-               d->cursor_.bottom().pit(),
-               d->cursor_.bottom().pos(),
-               d->cursor_.paragraph().id(),
-               d->cursor_.pos(),
-               idx
-       );
-       if (idx)
-               // emit message signal.
-               message(_("Save bookmark"));
+       if (!buffer_.isInternal()) {
+               theSession().bookmarks().save(
+                       buffer_.fileName(),
+                       d->cursor_.bottom().pit(),
+                       d->cursor_.bottom().pos(),
+                       d->cursor_.paragraph().id(),
+                       d->cursor_.pos(),
+                       idx
+                       );
+               if (idx)
+                       // emit message signal.
+                       message(_("Save bookmark"));
+       }
 }