Fixed a clear case of brain failure (Don't try to show graphFrame window if MPL isn't installed)

This commit is contained in:
HomeWorld
2010-12-15 19:42:35 +02:00
parent ae46d14cef
commit 75d2f11c4c

View File

@@ -392,12 +392,10 @@ class MainFrame(wx.Frame):
self.waitDialog.Destroy()
def openGraphFrame(self, event):
if not gui.graphFrame.enabled:
return
if not self.graphFrame:
self.graphFrame = GraphFrame(self)
self.graphFrame.Show()
if gui.graphFrame.enabled:
self.graphFrame.Show()
else:
self.graphFrame.SetFocus()