QTfrontend/hwform.cpp
changeset 674 a15c8e3c69b3
parent 672 08ed55ea1e2a
child 681 7a20c50988ec
--- a/QTfrontend/hwform.cpp	Sun Dec 16 15:58:29 2007 +0000
+++ b/QTfrontend/hwform.cpp	Sun Dec 16 16:21:42 2007 +0000
@@ -32,6 +32,7 @@
 #include <QLabel>
 #include <QRadioButton>
 #include <QSpinBox>
+#include <QCloseEvent>
 
 #include "hwform.h"
 #include "game.h"
@@ -605,3 +606,9 @@
 
 	game->StartNet();
 }
+
+void HWForm::closeEvent(QCloseEvent *event)
+{
+	config->SaveOptions();
+	event->accept();
+}