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-20 10:57:05 +01:00
parent 147abaf234
commit 45597f967c
2 changed files with 4 additions and 1 deletions

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);
d->widget_->setEnabled(!read_only);
synchronizedCB->setEnabled(!immediate);
return argument;

View File

@ -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