equal
deleted
inserted
replaced
42 |
42 |
43 delete netHost; |
43 delete netHost; |
44 netHost = new QString(value("net/ip", "").toString()); |
44 netHost = new QString(value("net/ip", "").toString()); |
45 netPort = value("net/port", 46631).toUInt(); |
45 netPort = value("net/port", 46631).toUInt(); |
46 |
46 |
|
47 Form->ui.pageNetServer->leServerDescr->setText(value("net/servername", "hedgewars server").toString()); |
|
48 Form->ui.pageNetServer->sbPort->setValue(value("net/serverport", 46631).toUInt()); |
|
49 |
47 Form->ui.pageOptions->CBShowFPS->setChecked(value("fps/show", false).toBool()); |
50 Form->ui.pageOptions->CBShowFPS->setChecked(value("fps/show", false).toBool()); |
48 Form->ui.pageOptions->fpsedit->setValue(value("fps/interval", 27).toUInt()); |
51 Form->ui.pageOptions->fpsedit->setValue(value("fps/interval", 27).toUInt()); |
49 |
52 |
50 Form->ui.pageOptions->CBAltDamage->setChecked(value("misc/altdamage", false).toBool()); |
53 Form->ui.pageOptions->CBAltDamage->setChecked(value("misc/altdamage", false).toBool()); |
51 |
54 |
74 setValue("audio/sound", isSoundEnabled()); |
77 setValue("audio/sound", isSoundEnabled()); |
75 |
78 |
76 setValue("net/nick", Form->ui.pageOptions->editNetNick->text()); |
79 setValue("net/nick", Form->ui.pageOptions->editNetNick->text()); |
77 setValue("net/ip", *netHost); |
80 setValue("net/ip", *netHost); |
78 setValue("net/port", netPort); |
81 setValue("net/port", netPort); |
|
82 setValue("net/servername", Form->ui.pageNetServer->leServerDescr->text()); |
|
83 setValue("net/serverport", Form->ui.pageNetServer->sbPort->value()); |
79 |
84 |
80 setValue("fps/show", isShowFPSEnabled()); |
85 setValue("fps/show", isShowFPSEnabled()); |
81 setValue("fps/interval", Form->ui.pageOptions->fpsedit->value()); |
86 setValue("fps/interval", Form->ui.pageOptions->fpsedit->value()); |
82 |
87 |
83 setValue("misc/altdamage", isAltDamageEnabled()); |
88 setValue("misc/altdamage", isAltDamageEnabled()); |