]> git.lyx.org Git - features.git/commitdiff
Disable Apply button in InsetParams dialogs if there is no inset to apply to.
authorJuergen Spitzmueller <spitz@lyx.org>
Thu, 19 Nov 2015 14:48:49 +0000 (15:48 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Thu, 19 Nov 2015 14:48:49 +0000 (15:48 +0100)
Fixes: #9386
src/frontends/qt4/InsetParamsDialog.cpp

index 41b4bfa09c0e6c789e0db5ef3211ef2cf4bf643b..81652af61a88081ae4a933996478e92715793248 100644 (file)
@@ -181,7 +181,7 @@ docstring InsetParamsDialog::checkWidgets(bool immediate)
        bool const can_be_restored = !immediate && !read_only
                        && ins && (ins != d->inset_ || d->changed_);
        restorePB->setEnabled(can_be_restored);
-       applyPB->setEnabled(!immediate && lfun_ok && widget_ok && !read_only && valid_argument);
+       applyPB->setEnabled(ins && !immediate && lfun_ok && widget_ok && !read_only && valid_argument);
        newPB->setEnabled(widget_ok && !read_only && valid_argument);
        synchronizedCB->setEnabled(!immediate);
        return argument;