]> sigrok.org Git - pulseview.git/commitdiff
Fix #1128 by showing firmware and PD search paths in settings dialog
authorSoeren Apel <redacted>
Sat, 17 Mar 2018 18:59:06 +0000 (19:59 +0100)
committerUwe Hermann <redacted>
Sun, 18 Mar 2018 17:29:02 +0000 (18:29 +0100)
pv/dialogs/settings.cpp

index 17f68a655c54dd71b86a76e715b88798ddafd41f..d18d2d42e5e9df63f77dc3e7dfc016c8d76e7b24 100644 (file)
@@ -330,6 +330,28 @@ QWidget *Settings::get_about_page(QWidget *parent) const
        g_free(host);
 #endif
 
+       s.append("<tr><td colspan=\"2\"></td></tr>");
+       s.append("<tr><td colspan=\"2\"><b>" +
+               tr("Firmware search paths:") + "</b></td></tr>");
+
+       l_orig = sr_resourcepaths_get(SR_RESOURCE_FIRMWARE);
+       for (GSList *l = l_orig; l; l = l->next)
+               s.append(QString("<tr><td colspan=\"2\">%1</td></tr>").arg(
+                       QString((char*)l->data)));
+       g_slist_free_full(l_orig, g_free);
+
+#ifdef ENABLE_DECODE
+       s.append("<tr><td colspan=\"2\"></td></tr>");
+       s.append("<tr><td colspan=\"2\"><b>" +
+               tr("Protocol decoder search paths:") + "</b></td></tr>");
+
+       l_orig = srd_searchpaths_get();
+       for (GSList *l = l_orig; l; l = l->next)
+               s.append(QString("<tr><td colspan=\"2\">%1</td></tr>").arg(
+                       QString((char*)l->data)));
+       g_slist_free_full(l_orig, g_free);
+#endif
+
        /* Set up the supported field */
        s.append("<tr><td colspan=\"2\"></td></tr>");
        s.append("<tr><td colspan=\"2\"><b>" +