From 365cacac66e414ee9f46e40de1a44cd8c05cf43b Mon Sep 17 00:00:00 2001 From: blitzmann Date: Fri, 2 Oct 2015 14:20:36 -0400 Subject: [PATCH] Fix #371 --- gui/shipBrowser.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gui/shipBrowser.py b/gui/shipBrowser.py index ed56d4528f..2642c7d7ac 100644 --- a/gui/shipBrowser.py +++ b/gui/shipBrowser.py @@ -1648,10 +1648,9 @@ def deleteBtnCB(self): 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):