X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fwidgets%2Fdevicetoolbutton.hpp;h=589fbf2338016138be21050dd250032d54a04050;hp=ed69a4b64a4ef1b0209daf004f2192117a9af8c6;hb=7e0c99bf95836c89574b53ae3fa7840e2ddca77d;hpb=2b05d3110a0a50ce93c8c887a2dc00c1375e92fa 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.