Commit 6c57f972 authored by Jan Grulich's avatar Jan Grulich

Do not load initially selected connection twice

BUG: 379756
parent 13a513b5
......@@ -103,7 +103,6 @@ KCMNetworkmanagement::KCMNetworkmanagement(QWidget *parent, const QVariantList &
// Also check if the connection type is supported by KCM
const NetworkManager::ConnectionSettings::ConnectionType type = activeConnection->type();
if (UiUtils::isConnectionTypeSupported(type)) {
loadConnectionSettings(activeConnection->connection()->settings());
QMetaObject::invokeMethod(rootItem, "selectConnection", Q_ARG(QVariant, activeConnection->id()), Q_ARG(QVariant, activeConnection->connection()->path()));
}
} else {
......@@ -141,7 +140,6 @@ KCMNetworkmanagement::KCMNetworkmanagement(QWidget *parent, const QVariantList &
Q_FOREACH (const NetworkManager::Connection::Ptr &connection, connectionList) {
const NetworkManager::ConnectionSettings::ConnectionType type = connection->settings()->connectionType();
if (UiUtils::isConnectionTypeSupported(type)) {
loadConnectionSettings(connection->settings());
QMetaObject::invokeMethod(rootItem, "selectConnection", Q_ARG(QVariant, connection->settings()->id()), Q_ARG(QVariant, connection->path()));
break;
}
......
Markdown is supported
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