This commit is contained in:
blitzmann
2015-03-23 21:21:38 -04:00
parent 222888984a
commit 694a2a3d9b
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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