mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-01 21:28:07 -06:00
Remove superfluous QString::fromUtf8()
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user