]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/TocWidget.cpp
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / TocWidget.cpp
index 7eae64667b04c57ef3b13b1d00c4f8aaf0a8b759..538c04c177cb894dd2f4045301e7db29fb640087 100644 (file)
@@ -174,6 +174,9 @@ void TocWidget::doDispatch(Cursor & cur, FuncRequest const & cmd)
        TocItem const & item =
                gui_view_.tocModels().currentItem(current_type_, index);
 
+       // Start an undo group.
+       cur.beginUndoGroup();
+
        switch (cmd.action)
        {
        case LFUN_CHANGE_ACCEPT:
@@ -202,6 +205,7 @@ void TocWidget::doDispatch(Cursor & cur, FuncRequest const & cmd)
                if (inset)
                        inset->dispatch(cur, tmpcmd);
        }
+       cur.endUndoGroup();
 }