The problematic line is obviously this: if ( mysqldPath.isEmpty() || mysqldPath.compare( QLatin1String( "SERVERCMD_MYSQL-NOTFOUND" ) )) The result of the compare() function should either be checked for being 0, or, one should simply use operator== Thanks, Carsten