mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26338 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
976bdcbc3b
commit
e6a27a4724
@ -1323,6 +1323,12 @@ void GuiView::openDocument(string const & fname)
|
|||||||
if (!fullname.empty())
|
if (!fullname.empty())
|
||||||
filename = fullname.absFilename();
|
filename = fullname.absFilename();
|
||||||
|
|
||||||
|
if (!fullname.onlyPath().isDirectory()) {
|
||||||
|
Alert::warning(_("Invalid filename"),
|
||||||
|
bformat(_("The directory in the given path\n%1$s\ndoes not exists."),
|
||||||
|
from_utf8(fullname.absFilename())));
|
||||||
|
return;
|
||||||
|
}
|
||||||
// if the file doesn't exist, let the user create one
|
// if the file doesn't exist, let the user create one
|
||||||
if (!fullname.exists()) {
|
if (!fullname.exists()) {
|
||||||
// the user specifically chose this name. Believe him.
|
// the user specifically chose this name. Believe him.
|
||||||
|
Loading…
Reference in New Issue
Block a user