I'm not entirely happy with this way of doing it. It seems messy.
But there is not another clear option right now.

(cherry picked from commit 4f0ccae399)
This commit is contained in:
Richard Kimberly Heck 2018-10-04 20:37:03 -04:00
parent 35f0117b5f
commit 6806ad98df
2 changed files with 10 additions and 2 deletions

View File

@ -3666,15 +3666,21 @@ void GuiView::dispatchToBufferView(FuncRequest const & cmd, DispatchResult & dr)
// Let the current BufferView dispatch its own actions.
bv->dispatch(cmd, dr);
if (dr.dispatched())
if (dr.dispatched()) {
if (cmd.action() == LFUN_REDO || cmd.action() == LFUN_UNDO)
updateDialog("document", "");
return;
}
// Try with the document BufferView dispatch if any.
BufferView * doc_bv = documentBufferView();
if (doc_bv && doc_bv != bv) {
doc_bv->dispatch(cmd, dr);
if (dr.dispatched())
if (dr.dispatched()) {
if (cmd.action() == LFUN_REDO || cmd.action() == LFUN_UNDO)
updateDialog("document", "");
return;
}
}
// Then let the current Cursor dispatch its own actions.

View File

@ -93,6 +93,8 @@ What's new
- Fix missing TOC update (and related bugs) when setting default master (bug
11422).
- Fix problem with undo of document settings (bug 9004).
* INTERNALS