Fix bug #8814: Ask where to export file if it is not

yet saved.
This commit is contained in:
Richard Heck 2016-06-25 03:28:38 +01:00
parent 8b82998617
commit 1207d93951
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/**
/**
* \file GuiView.cpp
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
@ -3530,7 +3530,7 @@ void GuiView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
dispatch(FuncRequest(LFUN_DIALOG_SHOW, "sendto"), dr);
break;
}
if (!target_dir.isDirWritable()) {
if (doc_buffer->isUnnamed() || !target_dir.isDirWritable()) {
exportBufferAs(*doc_buffer, cmd.argument());
break;
}

View File

@ -72,6 +72,8 @@ What's new
- Make sure we output all XHTML table cells, even the empty ones (bug 10153).
- Ask where to export file if not yet saved (bug 8814).
* LYX2LYX