diff options
author | Stijn Buys <ingar@osirion.org> | 2012-10-14 10:08:50 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-10-14 10:08:50 +0000 |
commit | 97d79a827ef4978df15fa117e013817dbcde1d09 (patch) | |
tree | 2f7f74b5b1b8fcfb1ba68051e688d811f1056174 /src/client/mainmenu.cc | |
parent | 1883c2ea6cb3dd4ba5f26af31a0ad481d524dfef (diff) |
Added protection against duplicate dialog definitions, made the dialog window smaller.
Diffstat (limited to 'src/client/mainmenu.cc')
-rw-r--r-- | src/client/mainmenu.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/mainmenu.cc b/src/client/mainmenu.cc index 7271bcf..7374224 100644 --- a/src/client/mainmenu.cc +++ b/src/client/mainmenu.cc @@ -116,9 +116,10 @@ void MainMenu::load_definitions() if (ini.got_key_label("label", strval)) { dialog = new Dialog(this); dialog->set_label(strval); + } else { + ini.unknown_error("dialog definition requires label first"); } } else { - if (ini.got_key_label("label", strval)) { dialog->set_label(strval); |