diff -r bd82104a28af -r a15c8e3c69b3 QTfrontend/hwform.cpp --- 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 #include #include +#include #include "hwform.h" #include "game.h" @@ -605,3 +606,9 @@ game->StartNet(); } + +void HWForm::closeEvent(QCloseEvent *event) +{ + config->SaveOptions(); + event->accept(); +}