mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-12 22:14:35 +00:00
Disable Apply button in InsetParams dialogs if there is no inset to apply to.
Fixes: #9386
This commit is contained in:
parent
147abaf234
commit
45597f967c
@ -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);
|
||||
d->widget_->setEnabled(!read_only);
|
||||
synchronizedCB->setEnabled(!immediate);
|
||||
return argument;
|
||||
|
@ -111,6 +111,9 @@ What's new
|
||||
|
||||
- The math command \sideset is now in the autocomplete list (bug 9810).
|
||||
|
||||
- Disable Apply button in InsetParams dialogs if there is no inset to apply
|
||||
to (bug 9386).
|
||||
|
||||
|
||||
* INTERNALS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user