Skip to content

Commit

Permalink
Fix #267
Browse files Browse the repository at this point in the history
  • Loading branch information
blitzmann committed Mar 24, 2015
1 parent 2228889 commit 694a2a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gui/patternEditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def processRename(self, event):
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
Expand Down
2 changes: 1 addition & 1 deletion gui/resistsEditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def processRename(self, event):
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
Expand Down

0 comments on commit 694a2a3

Please sign in to comment.