]> sigrok.org Git - pulseview.git/commitdiff
Added commit support to HwCap dialog
authorJoel Holdsworth <redacted>
Fri, 28 Dec 2012 10:17:50 +0000 (10:17 +0000)
committerJoel Holdsworth <redacted>
Fri, 28 Dec 2012 10:19:38 +0000 (10:19 +0000)
pv/dialogs/hwcap.cpp
pv/dialogs/hwcap.h

index 9e73138dbead9d105ec1a78ef8dcd3963ded0ac4..e3a2764795434ab4139c676d0e40b6e55658349f 100644 (file)
@@ -41,5 +41,11 @@ HwCap::HwCap(QWidget *parent, struct sr_dev_inst *sdi) :
        _layout.addWidget(&_button_box);
 }
 
+void HwCap::accept()
+{
+       QDialog::accept();
+       _hw_cap_binding.commit();
+}
+
 } // namespace dialogs
 } // namespace pv
index 0548c8aedb0e383729b3f3c830e2c5cb4913347d..771c89712010785426718bd9deae25bf69961e59 100644 (file)
@@ -35,6 +35,9 @@ class HwCap : public QDialog
 public:
        HwCap(QWidget *parent, struct sr_dev_inst *sdi);
 
+protected:
+       void accept();
+
 private:
        QVBoxLayout _layout;
        QDialogButtonBox _button_box;