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

This commit is contained in:
Juergen Spitzmueller 2024-08-25 10:18:38 +02:00
parent d0fe7fcb7b
commit a2629b8eab

View 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;
}