Quellcode durchsuchen

fix wxGUI - https://trac.osgeo.org/grass/changeset/44437

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@44438 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa vor 14 Jahren
Ursprung
Commit
80cc6a31b2
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      gui/wxpython/gui_modules/menuform.py

+ 3 - 3
gui/wxpython/gui_modules/menuform.py

@@ -1551,7 +1551,7 @@ class cmdPanel(wx.Panel):
                             else:
                                 all = False
                             win = wx.BoxSizer(wx.HORIZONTAL)
-                            if p.get('age', 'old_layer') == 'old_layer':
+                            if p.get('age', 'old') == 'old':
                                 win1 = gselect.LayerSelect(parent=which_panel,
                                                           all=all,
                                                           default=p['default'])
@@ -1585,7 +1585,7 @@ class cmdPanel(wx.Panel):
                             win.Bind(wx.EVT_TEXT, self.OnUpdateSelection)
                             win.Bind(wx.EVT_TEXT, self.OnSetValue)
                         elif p.get('prompt', '') == 'dbtable':
-                            if p.get('age', 'old_dbtable') == 'old_dbtable':
+                            if p.get('age', 'old') == 'old':
                                 win = gselect.TableSelect(parent=which_panel)
                                 win.Bind(wx.EVT_COMBOBOX, self.OnUpdateSelection)
                                 win.Bind(wx.EVT_COMBOBOX, self.OnSetValue)
@@ -1680,7 +1680,7 @@ class cmdPanel(wx.Panel):
                     # a textctl and a button;
                     # we have to target the button here
                     p['wxId'] = [ fbb.GetChildren()[1].GetId() ]
-                    if p.get('age', 'new_file') == 'old_file' and \
+                    if p.get('age', 'new') == 'old' and \
                             UserSettings.Get(group='cmd', key='interactiveInput', subkey='enabled'):
                         # widget for interactive input
                         ifbb = wx.TextCtrl(parent = which_panel, id = wx.ID_ANY,