From d8d3977251e2f5aa440bc78ec98707cc19a6fa55 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 10 Jan 2016 20:57:12 +0100 Subject: [PATCH] Hook up the exit menu item. --- bmusb | 2 +- mainwindow.cpp | 6 ++++++ mainwindow.h | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bmusb b/bmusb index e7d3ce1..4a27515 160000 --- a/bmusb +++ b/bmusb @@ -1 +1 @@ -Subproject commit e7d3ce1cdb423c5ba33f098f97383f099055d621 +Subproject commit 4a275155fbd23690652c0478b12363d254f84e16 diff --git a/mainwindow.cpp b/mainwindow.cpp index e23d191..b78751f 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -43,6 +43,7 @@ MainWindow::MainWindow() // The menu. connect(ui->cut_action, &QAction::triggered, this, &MainWindow::cut_triggered); + connect(ui->exit_action, &QAction::triggered, this, &MainWindow::exit_triggered); // Hook up the transition buttons. // TODO: Make them dynamic. @@ -134,6 +135,11 @@ void MainWindow::cut_triggered() global_mixer->schedule_cut(); } +void MainWindow::exit_triggered() +{ + close(); +} + void MainWindow::cutoff_knob_changed(int value) { float octaves = value * 0.1f; diff --git a/mainwindow.h b/mainwindow.h index bb5a870..82309c4 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -33,6 +33,7 @@ public: public slots: void cut_triggered(); + void exit_triggered(); void transition_clicked(int transition_number); void channel_clicked(int channel_number); void wb_button_clicked(int channel_number); -- 2.39.2