Commit 38ea5c12 authored by Harald Sitter's avatar Harald Sitter 🏳️‍🌈
Browse files

prefer static QFile::exists

easier on the eyes if nothing else
parent 3155ced4
......@@ -21,8 +21,9 @@ LocaleGeneratorGlibc::LocaleGeneratorGlibc(QObject *parent)
void LocaleGeneratorGlibc::localesGenerate(const QStringList &list)
qCDebug(KCM_REGIONANDLANG) << "enable locales: " << list;
if (!QFile(QStringLiteral("/etc/locale.gen")).exists()) {
// fedora or centos
if (!QFile::exists(QStringLiteral("/etc/locale.gen"))) {
// When locale.gen is not present we assume that to mean that no generation is necessary, meaning we are done.
// e.g. fedora, centos and derivates
Q_EMIT success();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment