From: Steinar H. Gunderson Date: Sun, 10 Jan 2016 19:57:12 +0000 (+0100) Subject: Hook up the exit menu item. X-Git-Tag: 1.0.0~29 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=d8d3977251e2f5aa440bc78ec98707cc19a6fa55 Hook up the exit menu item. --- 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);