Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
b2849f47
Commit
b2849f47
authored
Sep 12, 2016
by
Maxime Perrotin
Browse files
Fix readonly mode
parent
468d7852
Changes
1
Hide whitespace changes
Inline
Side-by-side
opengeode/opengeode.py
View file @
b2849f47
...
...
@@ -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
]
=
[]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment