--- 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);