Fix build error

Clang does not seem to agree with comparison operator == between QString
and char *, so put char * in a QString and compare the two QStrings.