Skip to content

Commit d531df3

Browse files
committed
Fix log tab shutdown.
1 parent 3406f6d commit d531df3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

can_testbench.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,7 +1519,6 @@ def onSignalGraphedChanged(self, msg: DbcMessage, row: int, graphed: bool, stopG
15191519
data = {
15201520
"timestamps": [datetime.datetime.fromtimestamp(x) for x in msg.timestamps],
15211521
}
1522-
logging.info("here")
15231522
# Add each signal's values and names to the data dictionary
15241523
for sig in msg.signals:
15251524
data[sig.signal.name] = sig.graphValues
@@ -1685,10 +1684,13 @@ def setupLogMessages(self, log_file):
16851684
pass
16861685

16871686
def initTabs(self, tabWidget: QTabWidget):
1688-
self.tab = LogTab(self.rxMsgs, self.config)
1689-
tabWidget.addTab(self.tab, 'Log ' + os.path.basename(self.log_file))
1687+
self.rxTab = LogTab(self.rxMsgs, self.config)
1688+
tabWidget.addTab(self.rxTab, 'Log ' + os.path.basename(self.log_file))
16901689
tabWidget.setTabWhatsThis(tabWidget.count() - 1 , self.log_file)
16911690

1691+
def shutdown(self):
1692+
super().shutdown()
1693+
16921694
class MainApp(QMainWindow):
16931695
"""
16941696
A class that represents the main application

0 commit comments

Comments
 (0)