]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiErrorList.cpp
QDialogButtonBox for the remaining dialogs.
[lyx.git] / src / frontends / qt4 / GuiErrorList.cpp
index 3ab716acb16792df12e7e441ccaa750b8e132cab..0b625ccd519bf5ad2a73fca67919a165d0973b5e 100644 (file)
@@ -62,8 +62,8 @@ GuiErrorList::GuiErrorList(GuiView & lv)
 {
        setupUi(this);
 
-       connect(closePB, SIGNAL(clicked()),
-               this, SLOT(slotClose()));
+       connect(buttonBox, SIGNAL(clicked(QAbstractButton *)),
+                       this, SLOT(slotButtonBox(QAbstractButton *)));
        connect(viewLogPB, SIGNAL(clicked()),
                this, SLOT(viewLog()));
        connect(showAnywayPB, SIGNAL(clicked()),
@@ -72,7 +72,7 @@ GuiErrorList::GuiErrorList(GuiView & lv)
                this, SLOT(select()));
 
        bc().setPolicy(ButtonPolicy::OkCancelPolicy);
-       bc().setCancel(closePB);
+       bc().setCancel(buttonBox->button(QDialogButtonBox::Cancel));
 }