Revert "Return an error if file-open is called with a non-absolute path"

Reverted because of
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg181795.html.

This reverts commit 9c4461deea.
This commit is contained in:
Vincent van Ravesteijn 2014-01-29 20:46:19 +01:00
parent 2db3f50186
commit 3dec25e5a7

View File

@ -1591,12 +1591,8 @@ void GuiApplication::dispatch(FuncRequest const & cmd, DispatchResult & dr)
validateCurrentView();
// FIXME: create a new method shared with LFUN_HELP_OPEN.
string const fname = to_utf8(cmd.argument());
if (!FileName::isAbsolute(fname)) {
dr.setError(true);
dr.setMessage(_("Absolute filename expected."));
break;
}
bool const is_open = theBufferList().getBuffer(FileName(fname));
bool const is_open = FileName::isAbsolute(fname)
&& theBufferList().getBuffer(FileName(fname));
if (d->views_.empty()
|| (!lyxrc.open_buffers_in_tabs
&& current_view_->documentBufferView() != 0