Browse Source

wxGUI/datacatalog: remove unnecessary check and warning for dragging mapsets/locations, fixes 1299 (#1303)

Anna Petrasova 4 years ago
parent
commit
23d1e3d052
1 changed files with 1 additions and 13 deletions
  1. 1 13
      gui/wxpython/datacatalog/tree.py

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

@@ -1461,19 +1461,7 @@ class DataCatalogTree(TreeView):
     def OnBeginDrag(self, node, event):
         """Just copy necessary data"""
         self.DefineItems(self.GetSelected())
-
-        if self.selected_location and None in self.selected_mapset and \
-           None in self.selected_layer:
-            GMessage(_("Move or copy location isn't allowed"))
-            event.Veto()
-            return
-        elif self.selected_location and self.selected_mapset and \
-             None in self.selected_layer:
-            GMessage(_("Move or copy mapset isn't allowed"))
-            event.Veto()
-            return
-
-        if self.selected_layer and not (self._restricted and gisenv()[
+        if None not in self.selected_layer and not (self._restricted and gisenv()[
                                         'LOCATION_NAME'] != self.selected_location[0].data['name']):
             event.Allow()
             self.OnCopyMap(event)