[qt4/config] fix wrong logic