X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mainwindow.cpp;h=b78751f4de2d933d514d74b5cbbd209b12311b89;hb=71e498d978478c46b5ea12739b1dc9706be182a1;hp=e23d191d978511589e1e3ab8ec146232812a8d81;hpb=0fff2c95c89541e5b23611962a00886c64c00daa;p=nageru 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;