Fix replacing QString::left() with QString::at()
41f55182 replaced QString::left(1) with QString::at(1) (instead of at(0)), which clearly isn't equivalent. Additionally we need to make sure that the string isn't empty.
41f55182 replaced QString::left(1) with QString::at(1) (instead of at(0)), which clearly isn't equivalent. Additionally we need to make sure that the string isn't empty.