]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/InsetParamsWidget.cpp
Use <cstdint> instead of <boost/cstdint.hpp>
[lyx.git] / src / frontends / qt4 / InsetParamsWidget.cpp
index 317ad5023480839fede641f1ed63601b135e8477..86012a7fa97428bd67b875b55f48c334db0ac137 100644 (file)
@@ -29,6 +29,10 @@ CheckedWidget::CheckedWidget(QLineEdit * input, QWidget * label)
 
 bool CheckedWidget::check() const
 {
+       // Ignore if widget is disabled.
+       if (!input_->isEnabled())
+               return true;
+
        bool const valid = input_->hasAcceptableInput();
        // Visual feedback.
        setValid(input_, valid);
@@ -50,7 +54,7 @@ void InsetParamsWidget::addCheckedWidget(QLineEdit * input, QWidget * label)
 }
 
 
-bool InsetParamsWidget::checkWidgets() const
+bool InsetParamsWidget::checkWidgets(bool) const
 {
        bool valid = true;
        Q_FOREACH(CheckedWidget const & le, checked_widgets_)