mirror of
https://github.com/DreamSourceLab/DSView.git
synced 2025-01-23 13:42:55 +08:00
Cancel the selected item when failed to active a device
This commit is contained in:
parent
ab41a49df5
commit
a9e580987c
@ -1018,8 +1018,12 @@ namespace pv
|
||||
}
|
||||
}
|
||||
|
||||
_session->set_device(devHandle);
|
||||
_last_device_index = _device_selector.currentIndex();
|
||||
if (_session->set_device(devHandle)){
|
||||
_last_device_index = _device_selector.currentIndex();
|
||||
}
|
||||
else{
|
||||
update_device_list(); // Reload the list.
|
||||
}
|
||||
}
|
||||
|
||||
void SamplingBar::enable_toggle(bool enable)
|
||||
|
Loading…
x
Reference in New Issue
Block a user