Do not add invalid configurations to bearermonitor
If the list of configurations takes time in the backend, the defaultConfiguration will be invalid at this time, but will be updated by the backend. Change-Id: I2886a8f6c569c993814172ccaa46e4bb5ba5e0d6 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
This commit is contained in:
parent
7bda05eb38
commit
44654675ed
@ -127,6 +127,9 @@ static void updateItem(QTreeWidgetItem *item, const QNetworkConfiguration &confi
|
||||
|
||||
void BearerMonitor::configurationAdded(const QNetworkConfiguration &config, QTreeWidgetItem *parent)
|
||||
{
|
||||
if (!config.isValid())
|
||||
return;
|
||||
|
||||
QTreeWidgetItem *item = new QTreeWidgetItem;
|
||||
updateItem(item, config);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user