This commit is contained in:
blitzmann
2015-10-02 14:20:36 -04:00
parent 30fef3039c
commit 365cacac66

View File

@@ -1648,10 +1648,9 @@ class FitItem(SFItem.SFBrowserItem):
else:
dlg = wx.MessageDialog(self,
"Do you really want to delete this fit?",
"Confirm Delete", wx.OK | wx.CANCEL | wx.ICON_QUESTION)
result = dlg.ShowModal()
dlg.Destroy()
if result == wx.ID_OK:
"Confirm Delete", wx.YES | wx.NO | wx.ICON_QUESTION)
if dlg.ShowModal() == wx.ID_YES:
self.deleteFit()
def deleteFit(self, event=None):