summaryrefslogtreecommitdiffstats
path: root/utils/regtools/qeditor/utils.cpp
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-09-18 19:46:26 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2014-09-19 10:58:23 +0200
commitdbb59291e745c7cc640a35fc40faa083648793bf (patch)
treeae311328198db7b2e63e29386df30c504348ad02 /utils/regtools/qeditor/utils.cpp
parent57d6db6ff597c692e3d35a4ddffc86189268f8f6 (diff)
downloadrockbox-dbb59291e745c7cc640a35fc40faa083648793bf.tar.gz
rockbox-dbb59291e745c7cc640a35fc40faa083648793bf.tar.bz2
rockbox-dbb59291e745c7cc640a35fc40faa083648793bf.zip
qeditor: implement usb device list refresh (if supported)
Change-Id: Iaf05cad0e057f767dcde963d194027b2e290dbea Reviewed-on: http://gerrit.rockbox.org/978 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
Diffstat (limited to 'utils/regtools/qeditor/utils.cpp')
-rw-r--r--utils/regtools/qeditor/utils.cpp9
1 files changed, 9 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();