Remove superfluous QString::fromUtf8()

This commit is contained in:
Chocobo1 2017-11-21 16:07:48 +08:00
parent 4927d26877
commit 27090f0cfb
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
8 changed files with 13 additions and 13 deletions

View file

@ -394,7 +394,7 @@ void prefjson::setPreferences(const QString& json)
QString locale = m["locale"].toString();
if (pref->getLocale() != locale) {
QTranslator *translator = new QTranslator;
if (translator->load(QString::fromUtf8(":/lang/qbittorrent_") + locale)) {
if (translator->load(QLatin1String(":/lang/qbittorrent_") + locale)) {
qDebug("%s locale recognized, using translation.", qUtf8Printable(locale));
}else{
qDebug("%s locale unrecognized, using default (en).", qUtf8Printable(locale));