From 708c3ca0d3997ae7e74cf661725bb0b963c78b20 Mon Sep 17 00:00:00 2001 From: shibakaneki Date: Thu, 24 Nov 2011 13:36:54 +0100 Subject: [PATCH] Fixed an issue related to the teacher bar --- src/gui/UBTeacherBarWidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/UBTeacherBarWidget.cpp b/src/gui/UBTeacherBarWidget.cpp index bca8ffc5..3eeab9e4 100644 --- a/src/gui/UBTeacherBarWidget.cpp +++ b/src/gui/UBTeacherBarWidget.cpp @@ -2,6 +2,7 @@ #include "core/UBApplication.h" #include "core/UBPersistenceManager.h" +#include "UBMainWindow.h" #include "document/UBDocumentController.h" #include "document/UBDocumentProxy.h" @@ -123,6 +124,7 @@ UBTeacherBarWidget::UBTeacherBarWidget(QWidget *parent, const char *name):UBDock connect(UBApplication::boardController, SIGNAL(activeSceneWillChange()), this, SLOT(saveContent())); connect(UBApplication::boardController, SIGNAL(activeSceneChanged()), this, SLOT(loadContent())); + connect(UBApplication::mainWindow->actionQuit, SIGNAL(triggered()), this, SLOT(saveContent())); connect(mpTitle, SIGNAL(textChanged(QString)), this, SLOT(onValueChanged())); connect(mpPhasis, SIGNAL(currentIndexChanged(int)), this, SLOT(onValueChanged())); connect(mpDuration, SIGNAL(currentIndexChanged(int)), this, SLOT(onValueChanged()));