mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue