Fix #267
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user