When an addon has invalid markup show an error.
Espreon discovered the issue with his addon.
This commit is contained in:
parent
f961dd6bbc
commit
63408f2ac8
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue