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

Dont check properties when doing Undo

parent edf6b18c
......@@ -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
......
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