X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fwidgets%2Fdevicetoolbutton.hpp;h=589fbf2338016138be21050dd250032d54a04050;hb=68ad932d712f9a59be529d5283b95617e6da1e28;hp=ed69a4b64a4ef1b0209daf004f2192117a9af8c6;hpb=da30ecb7e72bd2547e524258efa5ec642988b70b;p=pulseview.git diff --git a/pv/widgets/devicetoolbutton.hpp b/pv/widgets/devicetoolbutton.hpp index ed69a4b6..589fbf23 100644 --- a/pv/widgets/devicetoolbutton.hpp +++ b/pv/widgets/devicetoolbutton.hpp @@ -70,6 +70,12 @@ public: const std::list< std::shared_ptr > &devices, std::shared_ptr selected); + /** + * Sets the current device to "no device". Useful for when a selected + * device fails to open. + */ + void reset(); + private: /** * Repopulates the menu from the device list.