]> git.lyx.org Git - features.git/commitdiff
Fix for previous commit: We come right back through here from
authorRichard Heck <rgheck@lyx.org>
Sat, 25 Jun 2016 04:38:27 +0000 (00:38 -0400)
committerRichard Heck <rgheck@lyx.org>
Sat, 25 Jun 2016 04:38:27 +0000 (00:38 -0400)
exportBufferAs, so we need to make sure we haven't been given
an export location.

src/frontends/qt4/GuiView.cpp

index a5a709864ac9c41e830dbd4dcee5bcd8b5270c46..429def550d0eb3c0d1a0f34734bc05dd36091a3b 100644 (file)
@@ -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;
                        }