git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26338 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2008-09-08 15:46:23 +00:00
parent 976bdcbc3b
commit e6a27a4724

View File

@ -1323,6 +1323,12 @@ void GuiView::openDocument(string const & fname)
if (!fullname.empty())
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 (!fullname.exists()) {
// the user specifically chose this name. Believe him.