]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiInfo.cpp
Add missing initialization
[lyx.git] / src / frontends / qt4 / GuiInfo.cpp
index dcc5ee9855cbc53dfe052b3692794650686e6cee..8994b9431e8fdb54fbe41fafb3b325a5356a2c1b 100644 (file)
@@ -90,6 +90,16 @@ docstring GuiInfo::dialogToParams() const
 }
 
 
+bool GuiInfo::checkWidgets(bool readonly) const
+{
+       nameLE->setReadOnly(readonly);
+       typeCO->setEnabled(!readonly);
+       if (!InsetParamsWidget::checkWidgets())
+               return false;
+       return !nameLE->text().isEmpty();
+}
+
+
 } // namespace frontend
 } // namespace lyx