Qt: fix when index == -1 - WinFilter