Minor qstring optimization + use isEmpty

Authored by mlaurent on Sep 18 2019, 4:43 AM.