Skip to content

Commit c82f72e

Browse files
committed
bug fix when adding new credential for given service
1 parent 1db70cb commit c82f72e

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/MPDevice.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,7 +1634,7 @@ MPNode* MPDevice::findCredParentNodeGivenChildNodeAddr(const QByteArray &address
16341634
/* Check every children */
16351635
while ((curChildNodeAddr != MPNode::EmptyAddress) || (curChildNodeAddr.isNull() && curChildNodeAddr_v != 0))
16361636
{
1637-
MPNode* curNode = findNodeWithAddressInList(loginChildNodes, curChildNodeAddr);
1637+
MPNode* curNode = findNodeWithAddressInList(loginChildNodes, curChildNodeAddr, curChildNodeAddr_v);
16381638

16391639
/* Safety checks */
16401640
if (!curNode)
@@ -6675,13 +6675,6 @@ void MPDevice::setMMCredentials(const QJsonArray &creds, bool noDelete,
66756675
/* Set favorite */
66766676
nodePtr->setFavoriteProperty(favorite);
66776677

6678-
/* Check for changed service */
6679-
if (service != nodePtr->getService())
6680-
{
6681-
qDebug() << "Detected service change new: " << service << ", old: " << nodePtr->getService();
6682-
//TODO implement service change
6683-
}
6684-
66856678
/* Check for changed description */
66866679
if (description != nodePtr->getDescription())
66876680
{

0 commit comments

Comments
 (0)