diff --git a/src/frontends/LyXView.cpp b/src/frontends/LyXView.cpp index a5bf70a1f6..14aae66a14 100644 --- a/src/frontends/LyXView.cpp +++ b/src/frontends/LyXView.cpp @@ -159,6 +159,9 @@ Buffer * LyXView::loadLyXFile(FileName const & filename, bool tolastfiles) } } + if (tolastfiles) + LyX::ref().session().lastFiles().add(filename); + busy(false); return newBuffer; }