Commit b2849f47 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix readonly mode

parent 468d7852
......@@ -428,7 +428,7 @@ class SDL_Scene(QtGui.QGraphicsScene, object):
def set_readonly(self, readonly=True):
''' Set the current scene as read-only, discard all new actions '''
if self.context == 'process':
if self.context == 'process' and readonly:
# only applies to 1st level hierarchy (process) allowing to have
# unmodifiable list of DCL and STATES at the 1st level of hierarchy
ACTIONS[self.context] = []
Supports Markdown
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