mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
parent
ed2d3e199f
commit
50b99f810f
@ -720,10 +720,9 @@ bool Formats::view(Buffer const & buffer, FileName const & filename,
|
|||||||
bool Formats::edit(Buffer const & buffer, FileName const & filename,
|
bool Formats::edit(Buffer const & buffer, FileName const & filename,
|
||||||
string const & format_name) const
|
string const & format_name) const
|
||||||
{
|
{
|
||||||
if (filename.empty() || !filename.exists()) {
|
if (filename.empty()) {
|
||||||
Alert::error(_("Cannot edit file"),
|
Alert::error(_("No Filename"),
|
||||||
bformat(_("File does not exist: %1$s"),
|
_("No filename was provided!"));
|
||||||
from_utf8(filename.absFileName())));
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user