Ver código fonte

wxGUI/iclass: be silent when checking connections for imported vector map

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54504 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 anos atrás
pai
commit
f7551f5758
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      gui/wxpython/iclass/frame.py

+ 1 - 1
gui/wxpython/iclass/frame.py

@@ -526,7 +526,7 @@ class IClassMapFrame(DoubleMapFrame):
 
 
         # check if attribute table really exists (fix broken connections)
         # check if attribute table really exists (fix broken connections)
         for layer in grass.vector_db(vector):
         for layer in grass.vector_db(vector):
-            if 0 != RunCommand('v.db.select', map = vector, where = "0 = 1"):
+            if 0 != RunCommand('v.db.select', flags = 'c', map = vector, where = "0 = 1"):
                 GWarning(_("Vector map <%s>: no attribute table found") % vector,
                 GWarning(_("Vector map <%s>: no attribute table found") % vector,
                          parent = self)
                          parent = self)
                 RunCommand('v.db.connect', flags = 'd', map = vector, layer = layer,
                 RunCommand('v.db.connect', flags = 'd', map = vector, layer = layer,