From 694a2a3d9bb4f17e802a3d794775f31ec5f70c2c Mon Sep 17 00:00:00 2001 From: blitzmann Date: Mon, 23 Mar 2015 21:21:38 -0400 Subject: [PATCH] Fix #267 --- gui/patternEditor.py | 2 +- gui/resistsEditor.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/patternEditor.py b/gui/patternEditor.py index 07181ea9f..5853048e8 100644 --- a/gui/patternEditor.py +++ b/gui/patternEditor.py @@ -289,7 +289,7 @@ class DmgPatternEditorDlg(wx.Dialog): return sDP = service.DamagePattern.getInstance() - if event.EventObject.Label == "Create": + if self.btnSave.Label == "Create": p = sDP.newPattern() else: # we are renaming, so get the current selection diff --git a/gui/resistsEditor.py b/gui/resistsEditor.py index 259f34213..0d26be5da 100644 --- a/gui/resistsEditor.py +++ b/gui/resistsEditor.py @@ -301,7 +301,7 @@ class ResistsEditorDlg(wx.Dialog): return sTR = service.TargetResists.getInstance() - if event.EventObject.Label == "Create": + if self.btnSave.Label == "Create": p = sTR.newPattern() else: # we are renaming, so get the current selection