浏览代码

wxGUI: try to fix https://trac.osgeo.org/grass/ticket/1412 (not opening north arrow dialog)

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

+ 7 - 11
gui/wxpython/gui_modules/gdialogs.py

@@ -506,21 +506,17 @@ class DecorationDialog(wx.Dialog):
 
         # create overlay if doesn't exist
         self._CreateOverlay()
-
+        
         if len(self.parent.MapWindow.overlays[self.ovlId]['cmd']) > 1:
-            mapName, found = utils.GetLayerNameFromCmd(self.parent.MapWindow.overlays[self.ovlId]['cmd'])
-            if self.parent.MapWindow.overlays[self.ovlId]['propwin'] is None and mapName:
-                # build properties dialog
-                menuform.GUI(parent = self.parent, show = False).ParseCommand(cmd=self.cmd,
-                                                                              completed=(self.GetOptData, self.name, ''))
-                
-            if found:
-                # enable 'OK' button
-                self.btnOK.Enable()
-                if name == 'legend':
+            if name == 'legend':
+                mapName, found = utils.GetLayerNameFromCmd(self.parent.MapWindow.overlays[self.ovlId]['cmd'])
+                if found:
+                    # enable 'OK' button
+                    self.btnOK.Enable()
                     # set title
                     self.SetTitle(_('Legend of raster map <%s>') % \
                                       mapName)
+            
         
     def _CreateOverlay(self):
         if not self.parent.Map.GetOverlay(self.ovlId):