Changeset 81362e64 in subsurface


Ignore:
Timestamp:
Jun 29, 2017, 3:10:32 PM (3 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
282698e
Parents:
d644656
git-author:
Robert C. Helling <helling@…> (06/29/17 14:37:30)
git-committer:
Dirk Hohndel <dirk@…> (06/29/17 15:10:32)
Message:

BT address 0 is bogus

Grey out those devices in the scanning list and prevent
the user from selecting those.

Signed-off-by: Robert C. Helling <helling@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • desktop-widgets/btdeviceselectiondialog.cpp

    rd0c3ef4 r81362e64  
    234234                pairingColor = QColor(Qt::blue);
    235235        }
     236        if (remoteDeviceInfo.address().isNull())
     237                pairingColor = QColor(Qt::gray);
     238
    236239
    237240        QString deviceLabel = tr("%1 (%2)   [State: %3]").arg(remoteDeviceInfo.name(),
     
    263266                statusMessage = tr("The device %1 must be paired in order to be used. Please use the context menu for pairing options.")
    264267                                  .arg(remoteDeviceInfo.address().toString());
     268                enableSaveButton = false;
     269        }
     270        if (remoteDeviceInfo.address().isNull()) {
     271                statusMessage = tr("A device needs a non-zero address for a connection.");
    265272                enableSaveButton = false;
    266273        }
Note: See TracChangeset for help on using the changeset viewer.