mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 21:06:59 -04:00
Fix #25: Program throws exception when clicking on the 'stylesheet' list if there are no stylesheets.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1450 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -90,6 +90,7 @@ void NewSetWindow::OnOK(wxCommandEvent&) {
|
||||
|
||||
void NewSetWindow::done() {
|
||||
try {
|
||||
if (!stylesheet_list->hasSelection()) return;
|
||||
StyleSheetP stylesheet = stylesheet_list->getSelection<StyleSheet>();
|
||||
set = intrusive(new Set(stylesheet));
|
||||
set->validate();
|
||||
|
||||
Reference in New Issue
Block a user