client: add some missing USE_GUI define guards

This commit is contained in:
Alon Levy 2013-08-29 16:05:40 +03:00
parent d0a1346fda
commit d867788044

View File

@ -440,9 +440,11 @@ void GUI::Dialog::handle_message_click(int id)
application().push_event(*event);
}
#ifdef USE_GUI
if (_close_on_message_click) {
application().hide_gui();
}
#endif
}
void GUI::Dialog::pre_destroy()
@ -861,7 +863,9 @@ public:
bool SettingsDialog::handle_close(const CEGUI::EventArgs& e)
{
DBG(0, "");
#ifdef USE_GUI
application().hide_gui();
#endif
return true;
}