mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Disable Apply button in InsetParams dialogs if there is no inset to apply to.
Fixes: #9386
This commit is contained in:
parent
ee72677fde
commit
d0aa1d250c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user