]> git.lyx.org Git - lyx.git/commitdiff
Unbreak GuiTabular::fucEnabled()
authorJuergen Spitzmueller <spitz@lyx.org>
Wed, 14 Aug 2024 14:27:20 +0000 (16:27 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Thu, 15 Aug 2024 05:26:59 +0000 (07:26 +0200)
I wonder how long this has been broken (if it ever worked)

(cherry picked from commit 6b0c243cda6a540907ded6d5298ae3fb23836a6d)

src/frontends/qt/GuiTabular.cpp
src/insets/InsetTabular.cpp

index 21772ebc6f834bc96907cf62aef2889bf1dfaa83..5c32edc7d4c4fe55fe957b7515546c9ce467d0d0 100644 (file)
@@ -1278,7 +1278,7 @@ bool GuiTabular::checkWidgets(bool readonly) const
 
 bool GuiTabular::funcEnabled(Tabular::Feature f) const
 {
-       FuncRequest r(LFUN_INSET_MODIFY, "tabular for-dialog" + featureAsString(f));
+       FuncRequest r(LFUN_INSET_MODIFY, "tabular for-dialog " + featureAsString(f));
        return getStatus(r).enabled();
 }
 
index 5a67154ee0c86c01ff706c59d9d1045389f786a1..2365d2e1bee801b301e0a086995674e9586acf71 100644 (file)
@@ -5370,7 +5370,7 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & cmd)
 
        case LFUN_INSET_MODIFY:
                // we come from the dialog
-               if (cmd.getArg(0) == "tabular")
+               if (cmd.getArg(0) == "tabular" && cmd.getArg(1) != "for-dialog")
                        tabularFeatures(cur, cmd.getLongArg(1));
                else
                        cur.undispatched();