]> 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:41:23 +0000 (00:41 -0400)
committerRichard Heck <rgheck@lyx.org>
Sat, 25 Jun 2016 04:41:23 +0000 (00:41 -0400)
exportBufferAs, so we need to make sure we haven't been given
an export location.

src/frontends/qt4/GuiView.cpp

index 4fa05399cf4ed45c3795d736d990cedf7b3ea671..bb75daa1d93946d2e2bf5ede509321ae5b398a55 100644 (file)
@@ -3530,7 +3530,8 @@ void GuiView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
                                dispatch(FuncRequest(LFUN_DIALOG_SHOW, "sendto"), dr);
                                break;
                        }
-                       if (doc_buffer->isUnnamed() || !target_dir.isDirWritable()) {
+                       if ((dest.empty() && doc_buffer->isUnnamed())
+                           || !target_dir.isDirWritable()) {
                                exportBufferAs(*doc_buffer, cmd.argument());
                                break;
                        }