--- a/QTfrontend/gameuiconfig.cpp Mon Aug 14 14:49:40 2006 +0000
+++ b/QTfrontend/gameuiconfig.cpp Wed Aug 16 11:41:00 2006 +0000
@@ -68,7 +68,11 @@
} else
if (str.startsWith("nick "))
{
- Form->ui.pageOptions->editNetNick->setText(str.mid(5));
+ Form->ui.pageNet->editNetNick->setText(str.mid(5));
+ } else
+ if (str.startsWith("ip "))
+ {
+ Form->ui.pageNet->editIP->setText(str.mid(3));
}
}
settings.close();
@@ -97,7 +101,8 @@
stream << "resolution " << Form->ui.pageOptions->CBResolution->currentIndex() << endl;
stream << "fullscreen " << Form->ui.pageOptions->CBFullscreen->isChecked() << endl;
stream << "sound " << Form->ui.pageOptions->CBEnableSound->isChecked() << endl;
- stream << "nick " << Form->ui.pageOptions->editNetNick->text() << endl;
+ stream << "nick " << Form->ui.pageNet->editNetNick->text() << endl;
+ stream << "ip " << Form->ui.pageNet->editIP->text() << endl;
settings.close();
}