Otherwise, it is very hard to track down the issues. I noticed this when debugging KNS in a KF5 build for liquidshell.
I will make the same patch for master, but since I was working on a KF5 build, it was easier to test this way.
@mkoller @apol