Browse Source

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

Tomas Zigo 4 years ago
parent
commit
2b477bd649
1 changed files with 2 additions and 1 deletions
  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()