From 8a0778662f36101b912ae14c2ac571cc7c487f0e Mon Sep 17 00:00:00 2001 From: blitzmann Date: Wed, 14 May 2014 23:44:44 -0400 Subject: [PATCH] Fixes refresh issue with importing from fitting window into empty fit. This removes a conditional that makes sure we don't fire the FitSelected event if the active fit is same as imported fit. Removing this, to my knowledge, has no adverse effects because when importing we *always* create a new fit (with the exception of the new fitting window import) and thus this conditional is not needed. --- gui/mainFrame.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gui/mainFrame.py b/gui/mainFrame.py index d07116be7..da598fa04 100644 --- a/gui/mainFrame.py +++ b/gui/mainFrame.py @@ -294,8 +294,7 @@ class MainFrame(wx.Frame): def _openAfterImport(self, importCount, fitIDs): if importCount == 1: - if self.getActiveFit() != fitIDs[0]: - wx.PostEvent(self, FitSelected(fitID=fitIDs[0])) + wx.PostEvent(self, FitSelected(fitID=fitIDs[0])) self.shipBrowser.RefreshContent()