Fixed bugs: dialogs remained disabled (signals were not attached to
[emufront] / src / dialogs / dataobjecteditdialog.cpp
index 437941a..c6644ba 100644 (file)
@@ -17,6 +17,7 @@
 // You should have received a copy of the GNU General Public License
 // along with EmuFront.  If not, see <http://www.gnu.org/licenses/>.
 
+#include <QtGui>
 #include <QDialogButtonBox>
 #include <QSqlQueryModel>
 #include <QSqlRecord>
@@ -36,6 +37,14 @@ void DataObjectEditDialog::connectSignals()
     connect(buttonBox, SIGNAL(rejected()), this, SLOT(rejectChanges()));
 }
 
+void DataObjectEditDialog::closeEvent(QCloseEvent *ev)
+{
+    qDebug() << "Emitting dialog closed";
+    emit dialogClosed();
+    ev->accept();
+}
+
+
 void DataObjectEditDialog::rejectChanges()
 {
     efObject = 0;