Changeset bc864c3 in subsurface


Ignore:
Timestamp:
Jul 3, 2017, 9:58:26 PM (3 weeks ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
345e063
Parents:
016b19e
git-author:
Dirk Hohndel <dirk@…> (07/03/17 17:25:51)
git-committer:
Dirk Hohndel <dirk@…> (07/03/17 21:58:26)
Message:

Don't add all discovered BT devices

This really doesn't help us as we can't associate a vendor/product with
devices we don't recognize, so we can't download from them, anyway.

Signed-off-by: Dirk Hohndel <dirk@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/btdiscovery.cpp

    rd7b8ad7 rbc864c3  
    164164                        qDebug() << "adding new btDCs entry (detected DC)" << newDevice << btVP.vendorIdx << btVP.productIdx << btVP.btpdi.address;;
    165165                        btDCs << btVP;
    166                         break;
    167                 }
    168         }
    169         productList[QObject::tr("Paired Bluetooth Devices")].append(device.name + " (" + device.address + ")");
    170 
    171         btVP.btpdi = device;
    172         btVP.dcDescriptor = newDC;
    173         btVP.vendorIdx = vendorList.indexOf(QObject::tr("Paired Bluetooth Devices"));
    174         btVP.productIdx = productList[QObject::tr("Paired Bluetooth Devices")].indexOf(device.name);
    175         qDebug() << "adding new btDCs entry (all paired)" << newDevice << btVP.vendorIdx << btVP.productIdx <<  btVP.btpdi.address;
    176         btAllDevices << btVP;
     166                        productList[QObject::tr("Paired Bluetooth Devices")].append(device.name + " (" + device.address + ")");
     167                        return;
     168                }
     169        }
     170        qDebug() << "Not recognized as dive computer";
    177171}
    178172
Note: See TracChangeset for help on using the changeset viewer.