This patch probably fixes http://bugzilla.lyx.org/show_bug.cgi?id=3360:

If LFUN_CITATION_INSERT is called without argument, then LFUN_DIALOG_SHOW
with the argument "citation" is called. It looks like LFUN_DIALOG_SHOW
opens a dialog connected to the last inset of that type. What seems to be
needed here is LFUN_DIALOG_SHOW_NEW_INSET, this lfun inserts a new inset
and then opens the corresponding dialog.
What I don't understand is why Jürgen could not reproduce the bug. I am
comitting this nevertheless, since it is definitely not wrong.


Georg
Index: src/lyxfunc.C
===================================================================
--- src/lyxfunc.C	(Revision 17734)
+++ src/lyxfunc.C	(Arbeitskopie)
@@ -1386,7 +1386,7 @@ void LyXFunc::dispatch(FuncRequest const
 				FuncRequest fr(LFUN_INSET_INSERT, icstr);
 				dispatch(fr);
 			} else
-				dispatch(FuncRequest(LFUN_DIALOG_SHOW, "citation"));
+				dispatch(FuncRequest(LFUN_DIALOG_SHOW_NEW_INSET, "citation"));
 			break;
 		}
 

Reply via email to