Even when no devices were found after "Scan for Devices", a user could
click on the active "OK" button. This fixes the behaviour so that the
"OK" button only gets enabled when a device has actually been found.
This fixes bug #237.
}
_device_list.setCurrentRow(0);
- _button_box.button(QDialogButtonBox::Ok)->setDisabled(false);
+ _button_box.button(QDialogButtonBox::Ok)->setDisabled(_device_list.count() == 0);
}
void Connect::device_selected(int index)