X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fpopups%2Fdeviceoptions.cpp;h=30d5f579422a37517aa689cae30dc1a88fe98262;hb=819f4c25391a9c74d3d2f528d462142d5c4aad4d;hp=c864865f4c854cea3ae96f8cec14286720c1cd35;hpb=51d4a9ab96a6bf64a1fcd1700e7e174498d4c118;p=pulseview.git diff --git a/pv/popups/deviceoptions.cpp b/pv/popups/deviceoptions.cpp index c864865..30d5f57 100644 --- a/pv/popups/deviceoptions.cpp +++ b/pv/popups/deviceoptions.cpp @@ -27,9 +27,6 @@ #include -using namespace boost; -using namespace std; - namespace pv { namespace popups { @@ -41,12 +38,7 @@ DeviceOptions::DeviceOptions(sr_dev_inst *sdi, QWidget *parent) : { setLayout(&_layout); - _layout.addWidget(_binding.get_property_form(this)); -} - -void DeviceOptions::closeEvent(QCloseEvent*) -{ - _binding.commit(); + _layout.addWidget(_binding.get_property_form(this, true)); } } // namespace popups