Parcourir la source

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

Tomas Zigo il y a 4 ans
Parent
commit
2b477bd649
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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()