Made spec_sort specifications featuring more than one '()' not hang.

Added error window if a script error occurs while loading a set.


git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@412 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
coppro
2007-05-23 00:47:18 +00:00
parent 9762524025
commit 06138ee325
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -91,10 +91,15 @@ void NewSetWindow::OnOK(wxCommandEvent&) {
}
void NewSetWindow::done() {
try {
StyleSheetP stylesheet = stylesheet_list->getSelection<StyleSheet>();
set = new_intrusive1<Set>(stylesheet);
set->validate();
EndModal(wxID_OK);
} catch (Error& e) {
handle_error(e);
throw; // We want to crash.
}
}
void NewSetWindow::onUpdateUI(wxUpdateUIEvent& ev) {