Assure OK/Apply button is initially disabled in InsetParamsDialogs (#8927)

(cherry picked from commit a2629b8eab)
This commit is contained in:
Juergen Spitzmueller 2024-08-25 10:18:38 +02:00 committed by Richard Kimberly Heck
parent 16f8084536
commit 53ae96fb0b

View File

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