Disable Apply button in InsetParams dialogs if there is no inset to apply to.

Fixes: #9386
This commit is contained in:
Juergen Spitzmueller 2015-11-19 15:48:49 +01:00
parent ee72677fde
commit d0aa1d250c

View 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;