Author: sts
Date: Mon Mar 10 20:08:03 2008
New Revision: 23648
URL: http://www.lyx.org/trac/changeset/23648
Log:
* restart cursor not only after mouse- and keyboard events, but also
after those from the toolbar, menus, etc.
Modified:
lyx-devel/trunk/src/LyXFunc.cpp
Modified: lyx-devel/trunk/src/LyXFunc.cpp
URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/LyXFunc.cpp?rev=23648
=
=
=
=
=
=
=
=
======================================================================
--- lyx-devel/trunk/src/LyXFunc.cpp (original)
+++ lyx-devel/trunk/src/LyXFunc.cpp Mon Mar 10 20:08:03 2008
@@ -1715,8 +1715,11 @@
&& !lyxaction.funcHasFlag(action,
LyXAction::ReadOnly))
lyx_view_->buffer()->markDirty();
- //Do we have a selection?
+ // Do we have a selection?
theSelection().haveSelection(view()->cursor().selection());
+
+ // update gui
+ lyx_view_->restartCursor();
}
}
In fact I am not really sure this is the right way. The problem is
that toolbar LFUNs did not update the layout list. When pressing a key
or clicking a mouse button the restartCursor call triggered
updateLayoutList();
updateToolbars();
updateStatusBar();
which did the necessary updates. For toolbar action though this was
not the cases, probably since the Menu reorganisation.
Stefan