X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInset.cpp;h=a0bbf32f4a2435af33456a26ef48a6b4de6e0618;hb=6f88e11da323c7159f80cf79d9f4486d3615e355;hp=f85b1a9566a17f710735fef0246c75cac3aca486;hpb=c9f7ce0a7a6d48b9b60af92828654aa7547286b4;p=lyx.git diff --git a/src/insets/Inset.cpp b/src/insets/Inset.cpp index f85b1a9566..a0bbf32f4a 100644 --- a/src/insets/Inset.cpp +++ b/src/insets/Inset.cpp @@ -350,7 +350,7 @@ void Inset::doDispatch(Cursor & cur, FuncRequest &cmd) // if the derived inset did not explicitly handle mouse_release, // we assume we request the settings dialog if (!cur.selection() && cmd.button() == mouse_button::button1 - && clickable(cmd.x(), cmd.y()) && hasSettings()) { + && clickable(cur.bv(), cmd.x(), cmd.y()) && hasSettings()) { FuncRequest tmpcmd(LFUN_INSET_SETTINGS); dispatch(cur, tmpcmd); } @@ -388,9 +388,6 @@ bool Inset::getStatus(Cursor &, FuncRequest const & cmd, // Allow modification of our data. // This needs to be handled in the doDispatch method of our // instantiatable children. - // FIXME: Why don't we let the insets determine whether this - // should be enabled or not ? Now we need this check for - // the tabular features. (vfr) flag.setEnabled(true); return true;