summaryrefslogtreecommitdiffstats
path: root/utils/regtools/qeditor
diff options
context:
space:
mode:
Diffstat (limited to 'utils/regtools/qeditor')
-rw-r--r--utils/regtools/qeditor/utils.cpp9
-rw-r--r--utils/regtools/qeditor/utils.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/utils/regtools/qeditor/utils.cpp b/utils/regtools/qeditor/utils.cpp
index 0719eecf7c..036f1595a3 100644
--- a/utils/regtools/qeditor/utils.cpp
+++ b/utils/regtools/qeditor/utils.cpp
@@ -829,6 +829,8 @@ BackendSelector::BackendSelector(Backend *backend, QWidget *parent)
#ifdef HAVE_HWSTUB
connect(m_dev_selector, SIGNAL(currentIndexChanged(int)),
this, SLOT(OnDevChanged(int)));
+ connect(&m_hwstub_helper, SIGNAL(OnDevListChanged(bool, struct libusb_device *)),
+ this, SLOT(OnDevListChanged2(bool, struct libusb_device *)));
#endif
OnDataSelChanged(0);
}
@@ -883,6 +885,13 @@ void BackendSelector::OnDataSelChanged(int index)
}
#ifdef HAVE_HWSTUB
+void BackendSelector::OnDevListChanged2(bool arrived, struct libusb_device *dev)
+{
+ Q_UNUSED(arrived);
+ Q_UNUSED(dev);
+ OnDevListChanged();
+}
+
void BackendSelector::OnDevListChanged()
{
ClearDevList();
diff --git a/utils/regtools/qeditor/utils.h b/utils/regtools/qeditor/utils.h
index 56d4962492..970010233a 100644
--- a/utils/regtools/qeditor/utils.h
+++ b/utils/regtools/qeditor/utils.h
@@ -312,6 +312,7 @@ private slots:
#ifdef HAVE_HWSTUB
void OnDevListChanged();
void OnDevChanged(int index);
+ void OnDevListChanged2(bool, struct libusb_device *);
void ClearDevList();
#endif
void OnDataSelChanged(int index);