X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fwidgets%2Fdevicetoolbutton.hpp;h=589fbf2338016138be21050dd250032d54a04050;hb=238b21f366aa9ac71e2801cfa7ef7e16ba8b390d;hp=ed69a4b64a4ef1b0209daf004f2192117a9af8c6;hpb=da30ecb7e72bd2547e524258efa5ec642988b70b;p=pulseview.git diff --git a/pv/widgets/devicetoolbutton.hpp b/pv/widgets/devicetoolbutton.hpp index ed69a4b..589fbf2 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.