From: Soeren Apel Date: Sat, 17 Mar 2018 18:59:06 +0000 (+0100) Subject: Fix #1128 by showing firmware and PD search paths in settings dialog X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=bf84211be02b096646cf28cf9dc7480029e4f439;p=pulseview.git Fix #1128 by showing firmware and PD search paths in settings dialog --- diff --git a/pv/dialogs/settings.cpp b/pv/dialogs/settings.cpp index 17f68a65..d18d2d42 100644 --- a/pv/dialogs/settings.cpp +++ b/pv/dialogs/settings.cpp @@ -330,6 +330,28 @@ QWidget *Settings::get_about_page(QWidget *parent) const g_free(host); #endif + s.append(""); + s.append("" + + tr("Firmware search paths:") + ""); + + l_orig = sr_resourcepaths_get(SR_RESOURCE_FIRMWARE); + for (GSList *l = l_orig; l; l = l->next) + s.append(QString("%1").arg( + QString((char*)l->data))); + g_slist_free_full(l_orig, g_free); + +#ifdef ENABLE_DECODE + s.append(""); + s.append("" + + tr("Protocol decoder search paths:") + ""); + + l_orig = srd_searchpaths_get(); + for (GSList *l = l_orig; l; l = l->next) + s.append(QString("%1").arg( + QString((char*)l->data))); + g_slist_free_full(l_orig, g_free); +#endif + /* Set up the supported field */ s.append(""); s.append("" +