commit dafb1c5bb69fe4d4d062d405a6ad82b6893eba03
Author: Richard Heck <[email protected]>
Date:   Sat Jun 25 00:38:27 2016 -0400

    Fix for previous commit: We come right back through here from
    exportBufferAs, so we need to make sure we haven't been given
    an export location.
---
 src/frontends/qt4/GuiView.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp
index a5a7098..429def5 100644
--- a/src/frontends/qt4/GuiView.cpp
+++ b/src/frontends/qt4/GuiView.cpp
@@ -3541,7 +3541,8 @@ void GuiView::dispatch(FuncRequest const & cmd, 
DispatchResult & dr)
                        else
                                target_dir = doc_buffer->fileName().onlyPath();
 
-                       if (doc_buffer->isUnnamed() || 
!target_dir.isDirWritable()) {
+                       if ((dest.empty() && doc_buffer->isUnnamed())
+                           || !target_dir.isDirWritable()) {
                                exportBufferAs(*doc_buffer, cmd.argument());
                                break;
                        }

Reply via email to