X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt%2FGuiView.cpp;h=714af17b6883c863761ad459d0c43dd200f77f1c;hb=b64b1aa85e18a57878c96f697317340b7db1a169;hp=ae8bc285ffc50282ce47ac9a835b0329ac50e83c;hpb=d4757eace04380e29d4b62088853bc45baa8dcf3;p=features.git diff --git a/src/frontends/qt/GuiView.cpp b/src/frontends/qt/GuiView.cpp index ae8bc285ff..714af17b68 100644 --- a/src/frontends/qt/GuiView.cpp +++ b/src/frontends/qt/GuiView.cpp @@ -3297,9 +3297,10 @@ bool GuiView::closeBuffer(Buffer & buf) if (success) { // goto bookmark to update bookmark pit. // FIXME: we should update only the bookmarks related to this buffer! + // FIXME: this is done also in LFUN_WINDOW_CLOSE! LYXERR(Debug::DEBUG, "GuiView::closeBuffer()"); - for (unsigned int i = 0; i < theSession().bookmarks().size(); ++i) - guiApp->gotoBookmark(i + 1, false, false); + for (unsigned int i = 1; i < theSession().bookmarks().size(); ++i) + guiApp->gotoBookmark(i, false, false); if (saveBufferIfNeeded(buf, false)) { buf.removeAutosaveFile();