From: Richard Heck Date: Sat, 25 Jun 2016 04:41:23 +0000 (-0400) Subject: Fix for previous commit: We come right back through here from X-Git-Tag: 2.2.1~95 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=180f1d54972ec60fc9d938472a257a0069ca89af;p=features.git 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. --- diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 4fa05399cf..bb75daa1d9 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -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; }