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.
This commit is contained in:
Richard Heck 2016-06-25 00:38:27 -04:00
parent 459a9d1a8f
commit dafb1c5bb6

View File

@ -3541,7 +3541,8 @@ void GuiView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
else else
target_dir = doc_buffer->fileName().onlyPath(); 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()); exportBufferAs(*doc_buffer, cmd.argument());
break; break;
} }