When an addon has invalid markup show an error.

Espreon discovered the issue with his addon.
This commit is contained in:
Mark de Wever 2009-10-10 11:12:02 +00:00
parent f961dd6bbc
commit 63408f2ac8

View file

@ -1108,7 +1108,12 @@ bool game_controller::new_campaign()
gui2::tcampaign_selection dlg(campaigns);
dlg.show(disp().video());
try {
dlg.show(disp().video());
} catch(twml_exception& e) {
e.show(disp());
return false;
}
if(dlg.get_retval() != gui2::twindow::OK) {
return false;