X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInset.cpp;h=a0bbf32f4a2435af33456a26ef48a6b4de6e0618;hb=6f88e11da323c7159f80cf79d9f4486d3615e355;hp=0fce648eff99f391cd980d7b91ca0e1767fa52f8;hpb=79f11f4e7daadcbf6977e50820d6bd01e6e690b3;p=lyx.git diff --git a/src/insets/Inset.cpp b/src/insets/Inset.cpp index 0fce648eff..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,11 +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) - if (cmd.getArg(0) == "tabular") - return false; flag.setEnabled(true); return true;