diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2017-11-04 19:18:43 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-11-06 14:05:26 -0800 |
commit | 20922e261a0f1ecb9b50a0717cbfef0a213c6d04 (patch) | |
tree | d4ae7a5cc2b9fcb3f55289657fe919d8d0f02076 /desktop-widgets/downloadfromdivecomputer.cpp | |
parent | 087900b643214aaa54745a920f510cc9827b3020 (diff) | |
download | subsurface-20922e261a0f1ecb9b50a0717cbfef0a213c6d04.tar.gz |
Remove unnecessary == NULL test.
Test not necessary, because the QString in question is not a pointer
and the string is tested for emptiness (which also flags null-strings).
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/downloadfromdivecomputer.cpp')
-rw-r--r-- | desktop-widgets/downloadfromdivecomputer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/downloadfromdivecomputer.cpp b/desktop-widgets/downloadfromdivecomputer.cpp index 25f0e1981..79fce917e 100644 --- a/desktop-widgets/downloadfromdivecomputer.cpp +++ b/desktop-widgets/downloadfromdivecomputer.cpp @@ -555,7 +555,7 @@ void DownloadFromDCWidget::bluetoothSelectionDialogIsFinished(int result) /* Make the selected Bluetooth device default */ QString selectedDeviceName = btDeviceSelectionDialog->getSelectedDeviceName(); - if (selectedDeviceName == NULL || selectedDeviceName.isEmpty()) { + if (selectedDeviceName.isEmpty()) { ui.device->setCurrentText(btDeviceSelectionDialog->getSelectedDeviceAddress()); } else { ui.device->setCurrentText(selectedDeviceName); |