mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 02:49:46 +00:00
InsetNote: pass on inset-modify lfuns addressed at other insets (#13068)
This commit is contained in:
parent
ce5f84ff02
commit
ae1ddcbda0
@ -143,6 +143,11 @@ void InsetNote::doDispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
switch (cmd.action()) {
|
switch (cmd.action()) {
|
||||||
|
|
||||||
case LFUN_INSET_MODIFY: {
|
case LFUN_INSET_MODIFY: {
|
||||||
|
if (cmd.getArg(0) != "note") {
|
||||||
|
// not for us; might be handled higher up
|
||||||
|
cur.undispatched();
|
||||||
|
return;
|
||||||
|
}
|
||||||
// Do not do anything if converting to the same type of Note.
|
// Do not do anything if converting to the same type of Note.
|
||||||
// A quick break here is done instead of disabling the LFUN
|
// A quick break here is done instead of disabling the LFUN
|
||||||
// because disabling the LFUN would lead to a greyed out
|
// because disabling the LFUN would lead to a greyed out
|
||||||
@ -152,7 +157,7 @@ void InsetNote::doDispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
InsetNoteParams params;
|
InsetNoteParams params;
|
||||||
string2params(to_utf8(cmd.argument()), params);
|
string2params(to_utf8(cmd.argument()), params);
|
||||||
if (params_.type == params.type)
|
if (params_.type == params.type)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
cur.recordUndoInset(this);
|
cur.recordUndoInset(this);
|
||||||
string2params(to_utf8(cmd.argument()), params_);
|
string2params(to_utf8(cmd.argument()), params_);
|
||||||
|
Loading…
Reference in New Issue
Block a user