Enable ref dialog to be launched by removing check on mouse buttons.

Too many FuncRequest(LFUN_INSET_EDIT,...) do not set the mouse button...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7156 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-06-11 21:46:42 +00:00
parent 470d0f8b4d
commit 7ed688d021
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2003-06-11 Angus Leeming <leeming@lyx.org>
* insetref.C (localDispatch): enable dialog to be lauched.
2003-06-11 John Levon <levon@movementarian.org>
* insettabular.C: correctly mark all cells as erased

View File

@ -48,7 +48,7 @@ dispatch_result InsetRef::localDispatch(FuncRequest const & cmd)
if (cmd.button() == mouse_button::button3)
cmd.view()->owner()->
dispatch(FuncRequest(LFUN_REF_GOTO, getContents()));
if (cmd.button() == mouse_button::button1)
else
InsetCommandMailer("ref", *this).showDialog(cmd.view());
return DISPATCHED;