xela144 / CANaconda

CANaconda project: CAN message viewer
GNU General Public License v3.0
10 stars 0 forks source link

When loading metadata, clear any old "anonymous" messages that now have metadata #60

Closed Susurrus closed 9 years ago

Susurrus commented 9 years ago

If a message has been found as an anonymous message and then metadata is loaded for it later, it sticks around even though it's now being parsed and displayed nicely. This looks ugly and is briefly confusing, so any messages that now have metadata should be cleared out of the message list.

Susurrus commented 9 years ago

Probably related to the error I get when loading the metadata after receiving anonymous messages:

Traceback (most recent call last):
  File "c:\Users\Bryant\Projects\CANaconda\canaconda_GUI.py", line 287, in loadFilter
    self.mainWindow.filtersTreeWidget.populateTree()
  File "c:\Users\Bryant\Projects\CANaconda\filtersTreeWidget.py", line 59, in populateTree
    messageName.setText(1, "ID: 0x{:03X}".format(self.messages[messageInfo].id))
ValueError: Unknown format code 'X' for object of type 'str'