X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fmainwindow.cpp;h=e1f831408a54385d7b12da34999e92a6f6956e2d;hb=4e5a4405482a296ebb6014e627298ad156c78d55;hp=f7b8612054ff058997a8cd0f2cd3f75b8310f5a0;hpb=aca00b1e0d3483926c53dfd856483a397f1c29a5;p=pulseview.git diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index f7b8612..e1f8314 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -39,8 +39,8 @@ #include "devicemanager.h" #include "dialogs/about.h" #include "dialogs/connect.h" -#include "dialogs/decoder.h" #include "toolbars/samplingbar.h" +#include "view/logicsignal.h" #include "view/view.h" /* __STDC_FORMAT_MACROS is required for PRIu64 and friends (in C++). */ @@ -375,19 +375,7 @@ void MainWindow::add_decoder(QObject *action) (srd_decoder*)((QAction*)action)->data().value(); assert(dec); - const std::vector< boost::shared_ptr > &sigs = - _session.get_signals(); - - 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(), options); + _session.add_decoder(dec); } void MainWindow::run_stop()