mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
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:
parent
778cff1cff
commit
cd84a3024d
@ -3304,6 +3304,10 @@ void GuiView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
|
|||||||
dispatch(FuncRequest(LFUN_DIALOG_SHOW, "sendto"), dr);
|
dispatch(FuncRequest(LFUN_DIALOG_SHOW, "sendto"), dr);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (!doc_buffer->fileName().onlyPath().isDirWritable()) {
|
||||||
|
exportBufferAs(*doc_buffer);
|
||||||
|
break;
|
||||||
|
}
|
||||||
/* TODO/Review: Is it a problem to also export the children?
|
/* TODO/Review: Is it a problem to also export the children?
|
||||||
See the update_unincluded flag */
|
See the update_unincluded flag */
|
||||||
d.asyncBufferProcessing(argument,
|
d.asyncBufferProcessing(argument,
|
||||||
|
Loading…
Reference in New Issue
Block a user