]> git.lyx.org Git - features.git/commitdiff
Fix bug #8814: Ask where to export file if it is not
authorRichard Heck <rgheck@lyx.org>
Sat, 25 Jun 2016 02:28:38 +0000 (03:28 +0100)
committerRichard Heck <rgheck@lyx.org>
Sat, 25 Jun 2016 02:29:30 +0000 (03:29 +0100)
yet saved.

src/frontends/qt4/GuiView.cpp
status.22x

index 6bfcdcb0328a76c78c783a498c3c9cbe89d90137..4fa05399cf4ed45c3795d736d990cedf7b3ea671 100644 (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;
                        }
index e6fca8ff5490091f4316245178d2bd4f62295f68..eff4c0f406e69b0c1e33350cc4095c5e923ce8fe 100644 (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