Skip to content

Commit

Permalink
Merge pull request #64 from amccarthy/auto-connect
Browse files Browse the repository at this point in the history
Removing dangling pointers from containers.
  • Loading branch information
lpotter committed May 5, 2014
2 parents 20af44f + adb238b commit b1db352
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions connd/qconnectionagent.cpp
Expand Up @@ -308,6 +308,7 @@ void QConnectionAgent::updateServicesMap()
qDebug() << Q_FUNC_INFO;
QStringList oldServices = orderedServicesList;
orderedServicesList.clear();
servicesMap.clear();

Q_FOREACH (const QString &tech,techPreferenceList) {
QVector<NetworkService*> services = netman->getServices(tech);
Expand Down Expand Up @@ -440,6 +441,7 @@ void QConnectionAgent::serviceRemoved(const QString &srv)
qDebug() << Q_FUNC_INFO << "<<<<" << srv;
if (orderedServicesList.contains(srv)) {
orderedServicesList.removeOne(srv);
servicesMap.remove(srv);
}
}

Expand Down

0 comments on commit b1db352

Please sign in to comment.