Permalink
Browse files

Unselect all selections used as input for the toos.

Closes #1
  • Loading branch information...
1 parent b2d21e5 commit 43be23ea8e860a5505996e3b8ddc470340619e80 Sandro Santilli committed Nov 6, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 plugin/pgtopoeditor.py
View
@@ -118,7 +118,7 @@ def doRemEdgeModFace(self):
report += str(len(errors)) + "):\n\n" + "\n".join(errors[:5])
QMessageBox.information(None, toolname, report)
- #QMessageBox.information(None, toolname, "Edge " + str(edge_id) + " in topology " + toponame + " removed");
+ layer.removeSelection()
self.iface.mapCanvas().refresh()
# Remove selected nodes (if of degree 2)
@@ -165,6 +165,7 @@ def doModEdgeHeal(self):
cur.execute("SELECT ST_ModEdgeHeal(%s, %s, %s)", (toponame, edge1_id, edge2_id))
conn.commit()
cur.close()
+ layer.removeSelection()
self.iface.mapCanvas().refresh()
except psycopg2.Error as e:
QMessageBox.information(None, toolname, str(e));
@@ -173,6 +174,7 @@ def doModEdgeHeal(self):
conn.close()
+
# Collect all topogeoms registered as being in the currently selected
# topolayer and not really present in it
#

0 comments on commit 43be23e

Please sign in to comment.