From a4de0f2b5bdc6d069f96c9e8198df3bd0c13ed4b Mon Sep 17 00:00:00 2001 From: blitzman Date: Sat, 11 Feb 2017 22:10:53 -0500 Subject: [PATCH] Fix crash in OS X --- gui/mainFrame.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/mainFrame.py b/gui/mainFrame.py index e2eb3a7c7..53b830d98 100644 --- a/gui/mainFrame.py +++ b/gui/mainFrame.py @@ -80,6 +80,8 @@ from time import gmtime, strftime import threading import webbrowser +disableOverrideEditor = False + if 'wxMac' not in wx.PlatformInfo or ('wxMac' in wx.PlatformInfo and wx.VERSION >= (3, 0)): from service.crest import Crest from service.crest import CrestModes @@ -87,8 +89,6 @@ if 'wxMac' not in wx.PlatformInfo or ('wxMac' in wx.PlatformInfo and wx.VERSION try: from gui.propertyEditor import AttributeEditor - - disableOverrideEditor = False except ImportError as e: AttributeEditor = None print("Error loading Attribute Editor: %s.\nAccess to Attribute Editor is disabled." % e.message)