QTfrontend/hwform.cpp
changeset 2773 e94f240a8a41
parent 2742 21c0d2e69753
child 2776 9572aae13d49
equal deleted inserted replaced
2772:1965eba10be6 2773:e94f240a8a41
    69 bool frontendEffects = true;
    69 bool frontendEffects = true;
    70 
    70 
    71 HWForm::HWForm(QWidget *parent)
    71 HWForm::HWForm(QWidget *parent)
    72   : QMainWindow(parent), pnetserver(0), pRegisterServer(0), editedTeam(0), hwnet(0)
    72   : QMainWindow(parent), pnetserver(0), pRegisterServer(0), editedTeam(0), hwnet(0)
    73 {
    73 {
    74     QSettings settings(cfgdir->absolutePath() + "/hedgewars.ini", QSettings::IniFormat);
    74     gameSettings = new QSettings(cfgdir->absolutePath() + "/hedgewars.ini", QSettings::IniFormat);
    75     frontendEffects = settings.value("video/frontendeffects", true).toBool();
    75     frontendEffects = gameSettings->value("video/frontendeffects", true).toBool();
    76 
    76 
    77 	ui.setupUi(this);
    77 	ui.setupUi(this);
    78 
    78 
    79 	CustomizePalettes();
    79 	CustomizePalettes();
    80 	
    80