Commit 325cb8f5 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Don't emit MSC when updating TC fields from DB

parent 08168d37
......@@ -148,7 +148,7 @@ class SQLTelecommands(TC):
native_asn1scc = self.sql2asn1(item.text().split()[0])
# native_asn1scc.PrintAll() available
python_var = self.parent.backend.fromASN1ToPyside(native_asn1scc)
self.parent.tmToEditor(python_var)
self.parent.tmToEditor(python_var, emit_msc=False)
def sql2asn1(self, idx):
row = SQLTelecommands.session.query(
......
......@@ -463,7 +463,7 @@ class asn1Editor(QTreeView):
# Inform the thread to update the tree (expand all branches)
self.expandTree.emit()
def tmToEditor(self, pythonVar):
def tmToEditor(self, pythonVar, emit_msc=True):
''' Check validity of a TM and update the viewer with the value '''
self.log.debug("Entering tmToEditor")
if pythonVar == {}:
......@@ -476,7 +476,8 @@ class asn1Editor(QTreeView):
asnVN = vn.toASN1ValueNotation(pythonVar[name])
msg = name + '(' + asnVN + ')'
self.log.debug('Emitting input to MSC') # + msg)
self.msc.emit('in', msg)
if emit_msc:
self.msc.emit('in', msg)
self.new_tm.emit()
self.log.debug("Leaving tmToEditor")
......
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