Commit 90355dd8 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Update context-dependent menu after pasting

to avoid forbidden symbol connections
parent 93a7c8ca
......@@ -143,6 +143,7 @@ Changelog
2.0.3 (03/2018)
- Optimize calls to asn1scc
- Fix paste error when input symbol is selected
2.0.2 (03/2018)
- Better support of ASN.1 constants
......
......@@ -990,7 +990,7 @@ class SDL_Scene(QtGui.QGraphicsScene, object):
Paste previously copied symbols at selection point
'''
if self.context == 'process' and self.readonly:
# with readonly flag, forbid item delettion
# with readonly flag, forbid item deletion
return
parent = list(self.selected_symbols)
if len(parent) > 1:
......@@ -1027,6 +1027,7 @@ class SDL_Scene(QtGui.QGraphicsScene, object):
item.cam(item.pos(), item.pos())
self.undo_stack.endMacro()
self.refresh()
self.selectionChanged.emit()
def sdl_to_statechart(self, basic=True, view=None):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment