commit 45597f967ce25785d7c99073fe8c25a9b57206dd
Author: Juergen Spitzmueller <[email protected]>
Date: Fri Nov 20 10:57:05 2015 +0100
Disable Apply button in InsetParams dialogs if there is no inset to apply
to.
Fixes: #9386
diff --git a/src/frontends/qt4/InsetParamsDialog.cpp
b/src/frontends/qt4/InsetParamsDialog.cpp
index f76427d..7909a6d 100644
--- a/src/frontends/qt4/InsetParamsDialog.cpp
+++ b/src/frontends/qt4/InsetParamsDialog.cpp
@@ -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;
diff --git a/status.21x b/status.21x
index 86748d3..c578cb9 100644
--- a/status.21x
+++ b/status.21x
@@ -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