]> git.lyx.org Git - features.git/commitdiff
GuiTabular.cpp: fix another FIXME
authorUwe Stöhr <uwestoehr@web.de>
Wed, 25 Aug 2010 02:56:27 +0000 (02:56 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Wed, 25 Aug 2010 02:56:27 +0000 (02:56 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35193 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiTabular.cpp

index 264a6456afb7d0fc429b388cc4282785cab3b05c..cd86e9b168125a76bdcfd1f9521f33f82eb1bb20 100644 (file)
@@ -199,9 +199,8 @@ void GuiTabular::checkEnabled()
        // check if setting a first header is allowed
        // additionally check firstheaderNoContentsCB because when this is
        // the case a first header makes no sense
-       // FIXME: verify that some previous row was not set.
-       firstheaderStatusCB->setEnabled(longtabular
-               && !firstheaderNoContentsCB->isChecked());
+       firstheaderStatusCB->setEnabled(getStatus(FuncRequest(LFUN_INSET_MODIFY, "tabular set-ltfirsthead")).enabled()
+               && longtabular && !firstheaderNoContentsCB->isChecked());
        firstheaderBorderAboveCB->setEnabled(longtabular
                && firstheaderStatusCB->isChecked());
        firstheaderBorderBelowCB->setEnabled(longtabular
@@ -220,8 +219,8 @@ void GuiTabular::checkEnabled()
        // check if setting a last footer is allowed
        // additionally check lastfooterNoContentsCB because when this is
        // the case a last footer makes no sense
-       lastfooterStatusCB->setEnabled(longtabular
-               && !lastfooterNoContentsCB->isChecked());
+       lastfooterStatusCB->setEnabled(getStatus(FuncRequest(LFUN_INSET_MODIFY, "tabular set-ltlastfoot")).enabled()
+               && longtabular && !lastfooterNoContentsCB->isChecked());
        lastfooterBorderAboveCB->setEnabled(longtabular
                && lastfooterBorderAboveCB->isChecked());
        lastfooterBorderBelowCB->setEnabled(longtabular