Disable Immediate Apply if no inset is modified.

This commit is contained in:
Juergen Spitzmueller 2018-08-08 10:34:57 +02:00
parent 8f467f32c4
commit d1fbbb78a8

View File

@ -200,6 +200,7 @@ docstring InsetParamsDialog::checkWidgets(bool immediate)
buttonBox->button(QDialogButtonBox::Apply)->setEnabled(ins && !immediate
&& lfun_ok && widget_ok
&& !read_only && valid_argument);
immediateApplyCB->setEnabled(ins && !read_only);
// This seems to be the only way to access custom buttons
QList<QAbstractButton*> buttons = buttonBox->buttons();
for (int i = 0; i < buttons.size(); ++i) {