]> 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>
Wed, 14 Aug 2024 14:27:20 +0000 (16:27 +0200)
I wonder how long this has been broken (if it ever worked)

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 6f1b470ea7e2d3377d7421697546f66e8a5f2573..aa07a69addc102daf3006e5676957e2cca6581b3 100644 (file)
@@ -5378,7 +5378,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();