Now an attempt to export into a folder without write permission causes LyX to automatically pop-up the "Export As" dialog (addressing #3402).

This commit is contained in:
Tommaso Cucinotta 2013-08-26 11:28:07 +01:00
parent 778cff1cff
commit cd84a3024d

View File

@ -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,