From 20922e261a0f1ecb9b50a0717cbfef0a213c6d04 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 4 Nov 2017 19:18:43 +0100 Subject: 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 --- desktop-widgets/downloadfromdivecomputer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-70-g09d2