X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fmainwindow.cpp;h=2a4ebc251746e37c156e4ee028c7b640b1921b74;hb=d29059343817896931df3cfce2b34ec5fcc7818b;hp=e70ca9891c565ca81891ef30e2f1b2246aa661d8;hpb=b1264f5650d4bd6cb801585ed5d1dc61226a21db;p=pulseview.git diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index e70ca98..2a4ebc2 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -216,7 +216,6 @@ void MainWindow::setup_ui() // Setup the context bar _context_bar = new toolbars::ContextBar(this); addToolBar(_context_bar); - insertToolBarBreak(_context_bar); // Set the title setWindowTitle(QApplication::translate("MainWindow", "PulseView", 0, @@ -355,6 +354,7 @@ void MainWindow::run_stop() QString("Capture failed"), _1)); break; + case SigSession::AwaitingTrigger: case SigSession::Running: _session.stop_capture(); break; @@ -363,7 +363,7 @@ void MainWindow::run_stop() void MainWindow::capture_state_changed(int state) { - _sampling_bar->set_sampling(state != SigSession::Stopped); + _sampling_bar->set_capture_state((pv::SigSession::capture_state)state); } void MainWindow::view_selection_changed()