Skip to content

Commit

Permalink
[qtbase] Really avoid the correct vpn warning. Contributes to JB#51275
Browse files Browse the repository at this point in the history
  • Loading branch information
pvuorela committed Dec 14, 2020
1 parent 02dccd4 commit 072dbdf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/plugins/bearer/connman/qconnmanengine.cpp
Expand Up @@ -490,7 +490,7 @@ QNetworkConfiguration::BearerType QConnmanEngine::ofonoTechToBearerType(const QS
return QNetworkConfiguration::BearerHSPA;
} else if (currentTechnology == QLatin1String("lte")) {
return QNetworkConfiguration::BearerLTE;
} else if (currentTechnology != QLatin1String("vpn")) { // we know this exists, but can't map it. warn for others
} else {
qCWarning(qLcLibBearer) << "QConnmanEngine: Unable to translate the bearer type of the unknown network technology:" << currentTechnology;
}
} else {
Expand Down Expand Up @@ -573,7 +573,9 @@ void QConnmanEngine::addServiceConfiguration(const QString &servicePath)
} else if (connectionType == QLatin1String("wimax")) {
cpPriv->bearerType = QNetworkConfiguration::BearerWiMAX;
} else {
qCWarning(qLcLibBearer) << "QConnmanEngine: Unable to translate the bearer type of the unknown connection type:" << connectionType;
if (connectionType != QLatin1String("vpn")) { // we know this exists but can't map it. warn for others
qCWarning(qLcLibBearer) << "QConnmanEngine: Unable to translate the bearer type of the unknown connection type:" << connectionType;
}
cpPriv->bearerType = QNetworkConfiguration::BearerUnknown;
}

Expand Down

0 comments on commit 072dbdf

Please sign in to comment.