commit 1207d93951c9baef700f0f177cdfc2cd1fe2a153
Author: Richard Heck <[email protected]>
Date: Sat Jun 25 03:28:38 2016 +0100
Fix bug #8814: Ask where to export file if it is not
yet saved.
---
src/frontends/qt4/GuiView.cpp | 4 ++--
status.22x | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp
index 6bfcdcb..4fa0539 100644
--- a/src/frontends/qt4/GuiView.cpp
+++ b/src/frontends/qt4/GuiView.cpp
@@ -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;
}
diff --git a/status.22x b/status.22x
index e6fca8f..eff4c0f 100644
--- a/status.22x
+++ b/status.22x
@@ -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