]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormError.C
try this for distinguishing inner and outer tabs
[lyx.git] / src / frontends / xforms / FormError.C
index 96c40cc2f25c64fbb3e86c61cf00c3453a92c808..46345e92f4bc674888bf3e6b237a709795361ae0 100644 (file)
@@ -23,7 +23,7 @@
 
 
 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);
@@ -65,7 +65,7 @@ void FormError::showInset(InsetError * inset)
 
        inset_ = inset;
        message_ = inset->getContents();
-       ih_ = inset->hide.connect(slot(this, &FormError::hide));
+       ih_ = inset->hideDialog.connect(slot(this, &FormError::hide));
        show();
 }
 
@@ -83,4 +83,8 @@ void FormError::build()
        // Workaround dumb xforms sizing bug
        minw_ = form()->w;
        minh_ = form()->h;
+       
+        // Manage the cancel/close button
+       bc_.setCancel(dialog_->button_cancel);
+       bc_.refresh();
 }