This commit is contained in:
Rob Emery 2024-10-08 23:08:56 +01:00 committed by Carl Schwan
parent b5bf26c919
commit 27f5882dc1
No known key found for this signature in database
GPG key ID: 02325448204E452A
2 changed files with 2 additions and 2 deletions

View file

@ -130,7 +130,7 @@ void Daemon::forceOnNetworkChange()
{ {
qCDebug(KDECONNECT_CORE) << "Sending onNetworkChange to" << d->m_linkProviders.size() << "LinkProviders"; qCDebug(KDECONNECT_CORE) << "Sending onNetworkChange to" << d->m_linkProviders.size() << "LinkProviders";
for (LinkProvider *a : std::as_const(d->m_linkProviders)) { for (LinkProvider *a : std::as_const(d->m_linkProviders)) {
qCDebug(KDECONNECT_CORE) << "Sending onNetworkChange to: " << a->name(); qCDebug(KDECONNECT_CORE) << "Sending onNetworkChange to:" << a->name();
a->onNetworkChange(); a->onNetworkChange();
} }
} }

View file

@ -97,7 +97,7 @@ KdeConnectKcm::KdeConnectKcm(QObject *parent, const KPluginMetaData &md, const Q
setWhenAvailable( setWhenAvailable(
daemon->linkProviders(), daemon->linkProviders(),
[this](bool error, const QStringList linkProviders) { [this](bool error, const QStringList &linkProviders) {
kcmUi.linkProviders_list->clear(); kcmUi.linkProviders_list->clear();
for (int i = 0; i < linkProviders.size(); ++i) { for (int i = 0; i < linkProviders.size(); ++i) {
QStringList linkProvider = linkProviders.at(i).split(QStringLiteral("|")); QStringList linkProvider = linkProviders.at(i).split(QStringLiteral("|"));