X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fmainwindow.cpp;h=dc5f981f7b3a5207ab0bc777e1656e292d12784b;hb=bb4c67698d836703257e9559d1a98cb3819c61a5;hp=6f852ce6044e16a1fe305c2334b21b36227bc6c0;hpb=708c552391bc942e91bc09bc808577e2564347bd;p=pulseview.git diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 6f852ce6..dc5f981f 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -391,11 +391,16 @@ void MainWindow::add_decoder(QObject *action) const std::vector< boost::shared_ptr > &sigs = _session.get_signals(); - dialogs::Decoder dlg(this, dec, sigs); - if(dlg.exec() != QDialog::Accepted) + GHashTable *const options = g_hash_table_new_full(g_str_hash, + g_str_equal, g_free, (GDestroyNotify)g_variant_unref); + + dialogs::Decoder dlg(this, dec, sigs, options); + if(dlg.exec() != QDialog::Accepted) { + g_hash_table_destroy(options); return; + } - _session.add_decoder(dec, dlg.get_probes()); + _session.add_decoder(dec, dlg.get_probes(), options); } void MainWindow::run_stop()