commit d0aa1d250cd0c89c5c8069a143058c019cddb991
Author: Juergen Spitzmueller <[email protected]>
Date:   Thu Nov 19 15:48:49 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 41b4bfa..81652af 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);
        newPB->setEnabled(widget_ok && !read_only && valid_argument);
        synchronizedCB->setEnabled(!immediate);
        return argument;

Reply via email to