浏览代码

wxGUI/datacatalog: don't expand the location tree node if the transformation dialog is closed (#823)

Tomas Zigo 4 年之前
父节点
当前提交
2b477bd649
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      gui/wxpython/datacatalog/tree.py

+ 2 - 1
gui/wxpython/datacatalog/tree.py

@@ -861,7 +861,8 @@ class DataCatalogTree(TreeView):
                                                 new_name,
                                                 self.copy_layer[i].data['type'],
                                                 env, callback)
-                dlg.ShowModal()
+                if dlg.ShowModal() == wx.ID_CANCEL:
+                    return
         self.ExpandNode(self.selected_mapset[0], recursive=True)
         self._initVariablesCatalog()