From d1fbbb78a8a9034772dd3e09ecd5cbf4416c17cf Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Wed, 8 Aug 2018 10:34:57 +0200 Subject: [PATCH] Disable Immediate Apply if no inset is modified. --- src/frontends/qt4/InsetParamsDialog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontends/qt4/InsetParamsDialog.cpp b/src/frontends/qt4/InsetParamsDialog.cpp index 9a4177fe87..481ab55bfc 100644 --- a/src/frontends/qt4/InsetParamsDialog.cpp +++ b/src/frontends/qt4/InsetParamsDialog.cpp @@ -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 buttons = buttonBox->buttons(); for (int i = 0; i < buttons.size(); ++i) { -- 2.39.2