mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
parent
110a5e2a15
commit
cca365f26c
@ -2263,8 +2263,10 @@ Buffer * GuiView::loadDocument(FileName const & filename, bool tolastfiles)
|
||||
setBuffer(newBuffer);
|
||||
newBuffer->errors("Parse");
|
||||
|
||||
if (tolastfiles)
|
||||
if (tolastfiles) {
|
||||
theSession().lastFiles().add(filename);
|
||||
theSession().writeFile();
|
||||
}
|
||||
|
||||
return newBuffer;
|
||||
}
|
||||
@ -2803,6 +2805,7 @@ bool GuiView::saveBuffer(Buffer & b, FileName const & fn)
|
||||
bool const success = (fn.empty() ? b.save() : b.saveAs(fn));
|
||||
if (success) {
|
||||
theSession().lastFiles().add(b.fileName());
|
||||
theSession().writeFile();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user