]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiBranch.cpp
do what the FIXME suggested
[lyx.git] / src / frontends / qt4 / GuiBranch.cpp
index f3599d1283470ff7b14e3548f0b482b03a707f83..0f6793d2d14f9f554d4186b52602fdba2e0593ad 100644 (file)
@@ -25,7 +25,6 @@
 #include "insets/InsetBranch.h"
 
 #include <QPushButton>
-#include <QCloseEvent>
 
 using namespace std;
 
@@ -33,10 +32,9 @@ namespace lyx {
 namespace frontend {
 
 GuiBranch::GuiBranch(GuiView & lv)
-       : GuiDialog(lv, "branch")
+       : GuiDialog(lv, "branch", qt_("Branch Settings"))
 {
        setupUi(this);
-       setViewTitle(_("Branch Settings"));
 
        connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK()));
        connect(closePB, SIGNAL(clicked()), this, SLOT(slotClose()));
@@ -48,13 +46,6 @@ GuiBranch::GuiBranch(GuiView & lv)
 }
 
 
-void GuiBranch::closeEvent(QCloseEvent * e)
-{
-       slotClose();
-       e->accept();
-}
-
-
 void GuiBranch::change_adaptor()
 {
        changed();