]> git.lyx.org Git - features.git/commitdiff
Disable Immediate Apply if no inset is modified.
authorJuergen Spitzmueller <spitz@lyx.org>
Wed, 8 Aug 2018 08:34:57 +0000 (10:34 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Wed, 8 Aug 2018 08:34:57 +0000 (10:34 +0200)
src/frontends/qt4/InsetParamsDialog.cpp

index 9a4177fe871c1e69b6bacd446f6d55b0599f819b..481ab55bfc9857fd9b98652be67febe0b9736a51 100644 (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) {