[Mod] only register event if event_type is specified
This commit is contained in:
parent
adc148c593
commit
82aeceff70
@ -237,6 +237,7 @@ class BaseMonitor(QtWidgets.QTableWidget):
|
||||
"""
|
||||
Register event handler into event engine.
|
||||
"""
|
||||
if self.event_type:
|
||||
self.signal.connect(self.process_event)
|
||||
self.event_engine.register(self.event_type, self.signal.emit)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user