Fix using !compare of QString, which is incorrect.