Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
asn1-value-editor
Commits
e49f417f
Commit
e49f417f
authored
Sep 05, 2015
by
Maxime Perrotin
Browse files
Dont check properties when doing Undo
parent
edf6b18c
Changes
1
Hide whitespace changes
Inline
Side-by-side
asn1_value_editor/sdlHandler.py
View file @
e49f417f
...
...
@@ -493,7 +493,7 @@ class sdlHandler(QObject):
''' Called when the undo button is pressed '''
self
.
undo_stack
.
undo
()
self
.
check_state
()
self
.
current_hash
=
self
.
on_event
()
self
.
current_hash
=
self
.
on_event
(
check_ppty
=
False
)
self
.
msc_undo
.
emit
()
def
redo
(
self
):
...
...
@@ -558,7 +558,7 @@ class sdlHandler(QObject):
undo_cmd
=
SendTC
(
self
,
old_state
)
self
.
undo_stack
.
push
(
undo_cmd
)
def
on_event
(
self
,
tc_name
=
None
,
param
=
None
):
def
on_event
(
self
,
tc_name
=
None
,
param
=
None
,
check_ppty
=
True
):
''' Read the values of internal variables in the dll, update the gui
accordingly (in the "global state" panel), and depending on the
current SDL state, enable/disable the buttons for sending TCs.
...
...
@@ -609,7 +609,9 @@ class sdlHandler(QObject):
# Log all TC sent
self
.
log_area
.
addItem
(
'Sent {}({})'
.
format
(
tc_name
,
param
or
''
))
self
.
check_properties
(
new_hash
)
if
check_ppty
:
# When doing undo, dont check propertis again
self
.
check_properties
(
new_hash
)
# TEMP TO TEST
# for name, typedef in self.proc.dataview.viewitems():
# if name != 'MySeq': continue
...
...
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