mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
Small simplification
This commit is contained in:
parent
8bbd4c5e58
commit
2662386077
@ -2436,12 +2436,7 @@ bool GuiView::saveBuffer(Buffer & b, FileName const & fn)
|
||||
if (fn.empty() && b.isUnnamed())
|
||||
return renameBuffer(b, docstring());
|
||||
|
||||
bool success;
|
||||
if (fn.empty())
|
||||
success = b.save();
|
||||
else
|
||||
success = b.saveAs(fn);
|
||||
|
||||
bool const success = (fn.empty() ? b.save() : b.saveAs(fn));
|
||||
if (success) {
|
||||
theSession().lastFiles().add(b.fileName());
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user