]> git.lyx.org Git - lyx.git/commitdiff
Assure OK/Apply button is initially disabled in InsetParamsDialogs (#8927)
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 25 Aug 2024 08:18:38 +0000 (10:18 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 25 Aug 2024 08:18:38 +0000 (10:18 +0200)
src/frontends/qt/InsetParamsDialog.cpp

index 0e49aaab330f47bd1271e0f0f8c0c2c8b8e9921d..6d9b98303f656eb28fdb3391a96ed65fd52e8bcb 100644 (file)
@@ -102,6 +102,12 @@ bool InsetParamsDialog::initialiseParams(std::string const & sdata)
 {
        if (!d->widget_->initialiseParams(sdata))
                resetDialog();
+       else {
+               // Needed to keep the OK/Apply buttons
+               // disabled (see #8927)
+               d->changed_ = false;
+               d->inset_ = inset(d->widget_->insetCode());
+       }
        return true;
 }