QTfrontend/hwform.cpp
changeset 2773 e94f240a8a41
parent 2742 21c0d2e69753
child 2776 9572aae13d49
--- a/QTfrontend/hwform.cpp	Mon Feb 08 21:49:52 2010 +0000
+++ b/QTfrontend/hwform.cpp	Tue Feb 09 01:47:50 2010 +0000
@@ -71,8 +71,8 @@
 HWForm::HWForm(QWidget *parent)
   : QMainWindow(parent), pnetserver(0), pRegisterServer(0), editedTeam(0), hwnet(0)
 {
-    QSettings settings(cfgdir->absolutePath() + "/hedgewars.ini", QSettings::IniFormat);
-    frontendEffects = settings.value("video/frontendeffects", true).toBool();
+    gameSettings = new QSettings(cfgdir->absolutePath() + "/hedgewars.ini", QSettings::IniFormat);
+    frontendEffects = gameSettings->value("video/frontendeffects", true).toBool();
 
 	ui.setupUi(this);