Commit 3155ced4 authored by Harald Sitter's avatar Harald Sitter 🏳️‍🌈
Browse files

replace superfluous lambda

we can connect two signals directly
parent 7a085f6b
/*
localegeneratorglibc.cpp
SPDX-FileCopyrightText: 2022 Han Young <hanyoung@protonmail.com>
SPDX-FileCopyrightText: 2022 Harald Sitter <sitter@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
......@@ -13,9 +14,7 @@ LocaleGeneratorGlibc::LocaleGeneratorGlibc(QObject *parent)
, m_interface(new LocaleGenHelper(QStringLiteral("org.kde.localegenhelper"), QStringLiteral("/LocaleGenHelper"), QDBusConnection::systemBus(), this))
{
qCDebug(KCM_REGIONANDLANG) << "connect: " << m_interface->isValid();
connect(m_interface, &LocaleGenHelper::success, this, [this]() {
Q_EMIT this->needsFont();
});
connect(m_interface, &LocaleGenHelper::success, this, &LocaleGeneratorGlibc::needsFont);
connect(m_interface, &LocaleGenHelper::error, this, &LocaleGeneratorGlibc::userHasToGenerateManually);
}
......
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