forked from qt-creator/qt-creator
GeneralSettings: save some concatenation of literals
Change-Id: I1f30d1d99fed4d8fef33523f428395b8c2b6a20d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
@@ -66,9 +66,8 @@ static bool hasQmFilesForLocale(const QString &locale, const QString &creatorTrP
|
|||||||
{
|
{
|
||||||
static const QString qtTrPath = QLibraryInfo::location(QLibraryInfo::TranslationsPath);
|
static const QString qtTrPath = QLibraryInfo::location(QLibraryInfo::TranslationsPath);
|
||||||
|
|
||||||
const QString trFile = QLatin1String("qt_") + locale + QLatin1String(".qm");
|
const QString trFile = QLatin1String("/qt_") + locale + QLatin1String(".qm");
|
||||||
return QFile::exists(qtTrPath + QLatin1Char('/') + trFile)
|
return QFile::exists(qtTrPath + trFile) || QFile::exists(creatorTrPath + trFile);
|
||||||
|| QFile::exists(creatorTrPath + QLatin1Char('/') + trFile);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GeneralSettings::fillLanguageBox() const
|
void GeneralSettings::fillLanguageBox() const
|
||||||
|
Reference in New Issue
Block a user