From 7ed688d021628931b3d93ae68e2fdf46154f1c20 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Wed, 11 Jun 2003 21:46:42 +0000 Subject: [PATCH] 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 --- src/insets/ChangeLog | 4 ++++ src/insets/insetref.C | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 9087352a28..5d4aa3fc34 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,7 @@ +2003-06-11 Angus Leeming + + * insetref.C (localDispatch): enable dialog to be lauched. + 2003-06-11 John Levon * insettabular.C: correctly mark all cells as erased diff --git a/src/insets/insetref.C b/src/insets/insetref.C index eab61a905d..e85a1e8655 100644 --- a/src/insets/insetref.C +++ b/src/insets/insetref.C @@ -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; -- 2.39.2