don't create new nodes if another node is active
This commit is contained in:
parent
f4c39a1393
commit
de08e4cf58
1 changed files with 2 additions and 1 deletions
|
@ -468,7 +468,8 @@ def graph_edit(request, level=None, space=None):
|
|||
else:
|
||||
messages.error(request, _('You can not edit changes on this changeset.'))
|
||||
|
||||
elif clicked_node is None and clicked_position is not None and space.geometry.contains(clicked_position):
|
||||
elif (clicked_node is None and clicked_position is not None and
|
||||
active_node is None and space.geometry.contains(clicked_position)):
|
||||
with request.changeset.lock_to_edit(request) as changeset:
|
||||
if changeset.can_edit(request):
|
||||
node = GraphNode(space=space, geometry=clicked_position)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue