diff --git a/pydm/application.py b/pydm/application.py index 1893aa3b5..d04fc9aae 100644 --- a/pydm/application.py +++ b/pydm/application.py @@ -531,6 +531,9 @@ def eventFilter(self, obj, event): # Not sure if showing the tooltip should be the job of the app, # may want to revisit this. def show_address_tooltip(self, obj, event): + if not len(obj.channels()): + logger.warning("Object %r has no PyDM Channels", obj) + return addr = obj.channels()[0].address QToolTip.showText(event.globalPos(), addr) # If the address has a protocol, and it is the default protocol, strip it out before putting it on the clipboard.