diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 993e830036..ffc7073937 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -3304,6 +3304,10 @@ void GuiView::dispatch(FuncRequest const & cmd, DispatchResult & dr) dispatch(FuncRequest(LFUN_DIALOG_SHOW, "sendto"), dr); break; } + if (!doc_buffer->fileName().onlyPath().isDirWritable()) { + exportBufferAs(*doc_buffer); + break; + } /* TODO/Review: Is it a problem to also export the children? See the update_unincluded flag */ d.asyncBufferProcessing(argument,