X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiPrintNomencl.cpp;h=8b80a8d874cc7b57eb4633105526e513e6f03f9e;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=ed90eede867a06d00968ee1e5b868f2e1f098074;hpb=4136ee80db8cf459674e03595e84f1919275afc6;p=lyx.git diff --git a/src/frontends/qt4/GuiPrintNomencl.cpp b/src/frontends/qt4/GuiPrintNomencl.cpp index ed90eede86..8b80a8d874 100644 --- a/src/frontends/qt4/GuiPrintNomencl.cpp +++ b/src/frontends/qt4/GuiPrintNomencl.cpp @@ -129,11 +129,11 @@ void GuiPrintNomencl::applyView() } -bool GuiPrintNomencl::isValid() +bool GuiPrintNomencl::isValid() const { - return (setWidthCO->itemData( + return setWidthCO->itemData( setWidthCO->currentIndex()).toString() != "custom" - || !valueLE->text().isEmpty()); + || !valueLE->text().isEmpty(); }