Fix handling of Insert Plain Text dialog

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21932 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2007-12-02 22:33:55 +00:00
parent 411d45b165
commit d8d717fc36
2 changed files with 5 additions and 3 deletions

View File

@ -374,10 +374,10 @@ docstring const getContentsOfPlaintextFile(BufferView * bv, string const & f,
if (result.first == FileDialog::Later)
return docstring();
fname = makeAbsPath(to_utf8(result.second));
if (fname.empty())
if (result.second.empty())
return docstring();
fname = makeAbsPath(to_utf8(result.second));
}
if (!fs::is_readable(fname.toFilesystemEncoding())) {

View File

@ -197,6 +197,8 @@ What's new
- Make sure that the Chapter* layout appears in outline and naviagtion menu
(bug 3888).
- Fix handling of Insert Plain Text dialog cancel
* DOCUMENTATION