fix signal bug in chat widget for older PyQt versions