FormError::FormError(LyXView * lv, Dialogs * d)
- : FormInset( lv, d, _("LaTeX Error")),
+ : FormInset( lv, d, _("LaTeX Error"), new OkCancelPolicy),
dialog_(0), inset_(0)
{
Assert(lv && d);
// Workaround dumb xforms sizing bug
minw_ = form()->w;
minh_ = form()->h;
+
+ // Manage the cancel/close button
+ bc_.setCancel(dialog_->button_cancel);
+ bc_.refresh();
}