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>
This commit is contained in:
parent
087900b643
commit
20922e261a
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user