From 40365a88800126ff1a513f1cf9f985ece5668bb8 Mon Sep 17 00:00:00 2001 From: Corollax Date: Sat, 30 Oct 2010 13:51:32 -0500 Subject: [PATCH] Remove right-click context menu on empty fits Simple problem, simple fix? --- gui/fittingView.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gui/fittingView.py b/gui/fittingView.py index d3e9a8df4..90a832f02 100644 --- a/gui/fittingView.py +++ b/gui/fittingView.py @@ -209,6 +209,8 @@ class FittingView(d.Display): wx.CallAfter(self.spawnMenu) def spawnMenu(self): + if self.activeFitID is None: + return cFit = service.Fit.getInstance() selection = [] sel = self.GetFirstSelected()