Fix build: Compare non-const iterator with non-const iterator
...maybe this is not an error with all compiler / Qt configurations