浏览代码

wxGUI: remove condition for wxpython3, native font dialog doesn't work with any version on Mac, see https://trac.osgeo.org/grass/ticket/3046

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@68545 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 9 年之前
父节点
当前提交
7e2558eba8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/gui_core/preferences.py

+ 1 - 1
gui/wxpython/gui_core/preferences.py

@@ -729,7 +729,7 @@ class PreferencesDialog(PreferencesBaseDialog):
         panel.SetSizer(border)
         panel.SetSizer(border)
 
 
         # bindings
         # bindings
-        if sys.platform == 'darwin' and globalvar.CheckWxVersion([3]):
+        if sys.platform == 'darwin':
             outfontButton.Bind(wx.EVT_BUTTON, self.OnSetOutputFontCustomDialog)
             outfontButton.Bind(wx.EVT_BUTTON, self.OnSetOutputFontCustomDialog)
         else:
         else:
             outfontButton.Bind(wx.EVT_BUTTON, self.OnSetOutputFont)
             outfontButton.Bind(wx.EVT_BUTTON, self.OnSetOutputFont)