]> sigrok.org Git - pulseview.git/blobdiff - pv/popups/deviceoptions.cpp
Update property widgets before showing device config popup
[pulseview.git] / pv / popups / deviceoptions.cpp
index df9113679d2d5ddddd67c169778ea4820166cddc..bfb702cf064ce062462b67e5c7f0d0eba3f822d0 100644 (file)
@@ -49,5 +49,14 @@ pv::binding::Device& DeviceOptions::binding()
        return binding_;
 }
 
+void DeviceOptions::show()
+{
+       // Update device config widgets with the current values supplied by the
+       // driver before actually showing the popup dialog
+       binding_.update_property_widgets();
+
+       Popup::show();
+}
+
 } // namespace popups
 } // namespace pv