TocItem const & item =
gui_view_.tocModels().currentItem(current_type_, index);
+ // Start an undo group.
+ cur.beginUndoGroup();
+
switch (cmd.action)
{
case LFUN_CHANGE_ACCEPT:
if (inset)
inset->dispatch(cur, tmpcmd);
}
+ cur.endUndoGroup();
}
void TocWidget::updateView()
{
- if (!gui_view_.currentBufferView()) {
+ if (!gui_view_.documentBufferView()) {
enableControls(false);
typeCO->setEnabled(false);
tocTV->setModel(0);