mbleichner/service-monitor — Issue #12: Error messages in console
Author: mbleichner
Created: 2011-11-13 23:48:17+00:00
State: open
Labels: bug

Traceback (most recent call last):
File "/home/manuel/GitHub/service-monitor/contents/code/ServiceMonitor.py", line 182, in serviceStateChanged
self.refreshStateIcon(service)
File "/home/manuel/GitHub/service-monitor/contents/code/ServiceMonitor.py", line 187, in refreshStateIcon
icon = KIcon(':/status-%s-%s.png' % service.state)
AttributeError: 'QSignalMapper' object has no attribute 'state'

This seems to be caused by incorrect handling of sender() in PyQt. It should report the Service object as sender, but for some reason, it doesn't.